Skip to content

Instantly share code, notes, and snippets.

@huangguozhen
Last active January 27, 2016 13:44
Show Gist options
  • Save huangguozhen/aa7f2ed5723f316777bb to your computer and use it in GitHub Desktop.
Save huangguozhen/aa7f2ed5723f316777bb to your computer and use it in GitHub Desktop.
React 组织
1,节点(createElement)
2,组件(createClass or Components)
3,属性(props)
4,状态(state)
5,事件
6,生命周期
Redux API
1,createStore(reducer, [initialState])
reducer(action, state): state
2,Store
getStore()
dispatch(action)
subscribe(listener)
replaceReducer(nextReducer)
3,combineReducers(reducers)
4,applyMiddleware(...middlewares)
React-Redux
1,<Provider store>
2,connect([mapStateToProps], [mapDispatchToProps], [mergeProps], [options])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment