react-ui,基于react,是一套完整的form控件:
react-ui
文档:
http://lobos.github.io/react-ui/
其中, datetime,color,tree实现的都非常棒
react-ui,基于react,是一套完整的form控件:
react-ui
文档:
http://lobos.github.io/react-ui/
其中, datetime,color,tree实现的都非常棒
这个ReactUI的Moadl你用过嘛,为什么我用的时候,在Modal的conten里面嵌套组件弹出就会报错,buttons会失效,报这个错Minified exception occurred; use the non-minified dev environment ’ + 'for the full error message and additional helpful warnings
你好,最近我也在尝试制作React相关的基础控件库,看到这里,专门去关注学习了rctui的代码,功能上相似,但暴露出来的api和用法确有较大差异,所以希望能一起讨论一下,什么样的对外api更适合react,例如Table组件,差异非常大:
http://5doe.com/custom/react-component/example/#/components/table
为什么我会报错?
You may need an appropriate loader to handle this file type.
| “use strict”;
|
| export const Checkbox = require(’./Checkbox’);
| export const CheckboxGroup = require(’./CheckboxGroup’);
| export const Datetime = require(’./Datetime’);
这个问题解决了
首先,要用升级到babel6,然后js loader 这里 要包括 react ui 的目录, 因为他是es6写的 需要编译。
第二,加上babel6以后 也许会发现报错 react 未定义,那么只要在webpack里面把react expose就行了
{test: /react\.js$/, loader: 'expose?React'}