Skip to content

关于Markup Schema JSON Schema 和jsx这三种模式 #1379

Answered by janryWang
kkodeok asked this question in Q&A [2.x]
Discussion options

You must be logged in to vote

第一,纯JSX模式是一种很轻量很灵活很自由的模式,类比React Hook Form那种开发模式,适用于简单场景,或者扩展自定义组件内部的子表单实现
第二,JSON Schema模式,适用于表单搭建场景
第三,Markup Schema模式,适用于复杂表单场景,因为借助协议驱动能力,我们可以封装抽象很多场景组件,比如FormStep/FormTabs这些组件,在纯JSX模式则是很难做到的

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@janryWang
Comment options

@kkodeok
Comment options

@kkodeok
Comment options

@janryWang
Comment options

@kkodeok
Comment options

Answer selected by janryWang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants