jreact
use json to create react
Last updated 9 months ago by guoshencheng .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install jreact 
SYNC missed versions from official npm registry.

JsonReact

通过json来渲染生成react node 从而来达到json渲染页面的效果

example

npm run example

test

npm run test

如何定义一个Json自定义组件

type JRComponent = {
  name?: string, // 组件名称
  reducer?: Reducer<any, any>, // 组件的reducer 控制组件的数据
  Cls: React.ComponentType<any>, // 组件的实现
  actionKeys?: StringMap<DescribableKey>, // 组件的处罚reducer的key
  eventKeys?: StringMap<DescribableKey> // 组件的可触发事件的描述
}

Current Tags

  • 0.0.2                                ...           latest (9 months ago)

2 Versions

  • 0.0.2                                ...           9 months ago
  • 0.0.1                                ...           9 months ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 2
Last Day 0
Last Week 1
Last Month 0
Dependencies (6)
Dev Dependencies (14)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |