![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
React
金融女魔头
这个作者很懒,什么都没留下…
展开
-
怎样区分一个属性属于state还是props
只需要记住三句话:1. 该数据是否是由父组件通过 props 传递而来的?如果是,那它应该不是 state。2. 该数据是否随时间的推移而保持不变?如果是,那它应该也不是 state。3.你能否根据其他 state 或 props 计算出该数据的值?如果是,那它也不是 state。 —— 来自React 哲学转载 2020-05-21 17:12:10 · 139 阅读 · 0 评论 -
React Router 英文文档小结
react-router-domAll of the components that you use in a web application should be imported from react-router-dom.RouterAt the core of every React Router application should be a router component. Fo...转载 2020-05-08 13:35:31 · 204 阅读 · 0 评论 -
基于 React 的轮播图(Carousel)插件推荐!!!
给大家推荐一个超好用的基于 React 的轮播图插件React Responsive Carousel想看 Demo,可以查看下面这个链接Demo中文文档说明(非官方版本),大家可以做个参照:React Responsive Carousel 中文说明Ps: 大家有用到好用的轮播图插件,记得分享出来~...原创 2020-04-16 17:04:44 · 12119 阅读 · 1 评论