![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
React
文章平均质量分 80
YufJi
这个作者很懒,什么都没留下…
展开
-
react中使用echarts
依赖: "echarts": "^3.4.0", "echarts-for-react": "^1.1.6", "element-resize-event": "^2.0.7" (这个是干嘛的暂时不知道 ) ReactEcharts.js import React from 'react'; import ReactEcharts from 'echart原创 2017-02-08 16:57:57 · 3512 阅读 · 0 评论 -
React的PropTypes 验证
React.createClass({ propTypes: { // 可以声明 prop 为指定的 JS 基本类型。默认 // 情况下,这些 prop 都是可传可不传的。 optionalArray: React.PropTypes.array, optionalBool: React.PropTypes.bool, optionalFunc: Rea转载 2017-05-03 23:20:20 · 911 阅读 · 0 评论 -
react的生命周期
实例化 首次实例化 getDefaultPropsgetInitialStatecomponentWillMountrendercomponentDidMount 实例化完成后的更新 getInitialStatecomponentWillMountrendercomponentDidMount 存在期 组件已存在时的状态改变 componentWillR翻译 2017-03-20 13:54:09 · 282 阅读 · 0 评论