2017年5月15日

独立组件间共享Mixins

摘要: Mixins:用于组件间事件共享(公用的方法,比如弹窗,数值计算等组件函数) 要使用Mixins,首先要在项目文件夹根目录下安装Mixins包 react>npm install --save react-mixin@2 //指定安装版本 使用: step-1 建立公共mixins.js文件,将公共 阅读全文

posted @ 2017-05-15 18:17 jeanneze 阅读(393) 评论(0) 推荐(0) 编辑

React组件的Refs

摘要: Refs,操作DOM的第二种方法 Refs and the DOM In the typical React dataflow, props are the only way that parent components interact with their children. To modify 阅读全文

posted @ 2017-05-15 16:51 jeanneze 阅读(856) 评论(0) 推荐(0) 编辑

Typechecking With PropTypes

摘要: Note: React.PropTypes is deprecated as of React v15.5. Please use the prop-types library instead. As your app grows, you can catch a lot of bugs with 阅读全文

posted @ 2017-05-15 15:21 jeanneze 阅读(154) 评论(0) 推荐(0) 编辑

导航