0.5.1 • Published 6 years ago

react-json-render v0.5.1

Weekly downloads
4
License
GPL-2.0
Repository
github
Last release
6 years ago

react-json-render

使用 json 格式去渲染 react 组件

此仓库只是渲染引擎,不包含任何组件,要查看集成的组件可以查看 antd-json-render

import { createJsonRender } from 'react-json-render'


const {type, render} = createJsonRender()

type.add('button', (props) => {
  return <button>{props.text}</button>
})

class App extends React.Component {
  render() {
    return render({$: 'button', text: 'foo'})  // this will create `<button>foo</button>`
  }
}
0.5.1

6 years ago

0.5.0

6 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago