![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
React
犯二青年~
这个作者很懒,什么都没留下…
展开
-
Warning: Function components cannot be given refs. Attempts to access this ref will fail.
Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()? 在使用react封装了一个公用组件时,组件中使用了connect连接redux后的组件,然后其他地方引用该组件后就提示以上警告,虽然不影响...原创 2020-01-09 17:36:34 · 20800 阅读 · 2 评论 -
React中使用ECharts
在react前端开发过程中,很多时候需要呈现一些统计报表,在国内做的比较好的图表库就是百度的echarts,但是echarts不能直接在react中使用,需要通过一个中间库来间接使用,这个库就是echarts-for-react,当前最新版本2.0.14。把echarts-for-react和echarts安装到你的项目就可以使用了。 用法: 1.首先导入到组件 import...原创 2019-09-26 16:22:13 · 1042 阅读 · 0 评论