摘要:
【combineReducers】 Redux provides a utility called combineReducers(). The following two diagram has the same effect. You could also give them different 阅读全文
摘要:
【React Context】 1、Why Not To Use Context The vast majority of applications do not need to use context. 大多数应用不需要使用context。 If you want your application 阅读全文
摘要:
【propTypes】 React.PropTypes is deprecated as of React v15.5. Please use the prop-types library instead. You can define default values for your props b 阅读全文
摘要:
【Redux】 1、Redux 的设计思想 (1)Web 应用是一个状态机,视图与状态是一一对应的。 (2)所有的状态,保存在一个对象里面。 2、Store Store 就是保存数据的地方,你可以把它看成一个容器。整个应用只能有一个 Store。 Redux 提供createStore这个函数,用来 阅读全文
摘要:
【ES2015 import】 The import statement is used to import functions, objects or primitives that have been exported from an external module, another scrip 阅读全文