gfs-react-tools
react工具类整合,相关文档字段使用可参考 gfs-redux-bind-react、gfs-fetch、gfs-loadingbar、gfs-mock; 使用双向绑定功能请安装 gfs-react-redux-twoway-binding
使用
{ superprops thisstate = desc:'没有请求之前的值' } { //调用RTools中的ajax功能 RTools } { return <div>thisstatedesc</div> } //调用 //可选 middleware: //必填 module:Page //可选 reducers: //可选 devTools:Tools //可选 默认loadingbarComponent bar:null //可选 loadingbar平台(pc/wap/other)other直接使用bar字段作为参数 agent:'pc' //可选 react component放取的节点id container:'root'
Command
#测试
npm run test
#打包
npm run build
#例子演示
npm start