随笔分类 -  react

react的坑,想法
摘要:1.直接在后面写一串数字也是可以的 return 12345 可以正常渲染 2. 其他情况下,需要一个tag进行包裹 阅读全文
posted @ 2020-07-02 11:16 会挽雕弓如满月的张 阅读(424) 评论(0) 推荐(0)
摘要:父组件在render的时候(state改变的时候)无论子组件有没有更新,都会执行componentWillReceiveProps, 这个时候如果子组件用回调函数或者用redux或者mbox改变了父组件中的state,引起了父组件的render,那么子组件的componentWillReceiveP 阅读全文
posted @ 2020-06-30 14:42 会挽雕弓如满月的张 阅读(640) 评论(0) 推荐(0)
摘要:compose 阅读全文
posted @ 2020-03-11 14:12 会挽雕弓如满月的张 阅读(204) 评论(0) 推荐(0)
摘要:combinreducer 阅读全文
posted @ 2020-03-11 12:42 会挽雕弓如满月的张 阅读(241) 评论(0) 推荐(0)
摘要:thunk也转成es5语法较好看 阅读全文
posted @ 2020-03-10 15:14 会挽雕弓如满月的张 阅读(124) 评论(0) 推荐(0)
摘要:中间件的使用原理 阅读全文
posted @ 2020-03-10 14:10 会挽雕弓如满月的张 阅读(95) 评论(0) 推荐(0)
摘要:redux心得 阅读全文
posted @ 2020-03-09 11:59 会挽雕弓如满月的张 阅读(131) 评论(0) 推荐(0)
摘要:saga的使用 阅读全文
posted @ 2020-03-06 18:03 会挽雕弓如满月的张 阅读(118) 评论(0) 推荐(0)