摘要: For example we have a feature reducer like this: First of all, we can replace 'swtich' statement with normal Object: In case of ´actionReducer[type]´ 阅读全文
posted @ 2019-09-02 16:27 Zhentiw 阅读(194) 评论(0) 推荐(0)
摘要: Sometimes we might have some expensive function to calcuate state directly from template: The ´calculate´ function is a pure function, we can use memo 阅读全文
posted @ 2019-09-02 15:40 Zhentiw 阅读(255) 评论(0) 推荐(0)