Redux study notes

Redux all the data (e.g., state) stored in a container (Store)

store save all state of the object, ui component may be accessed directly from a particular state of the object to store

ui component changes state, a distribution action (that is executable to send information to the store)

When the store after receiving the proxy action this action to the relevant reducer

reducer is a pure function, which lets you view the state before, to perform an action and return to a new state.


Visit store components in the state, the components initiate a action, for change in the state store

store processing action, to deal with let reducer, reducer update state after treatment, state update, re-rendering components.


React when you could just learning school state management is to learn it, then companies do not use Mobx, only to learn Mobx awkward, but the idea is still a little Redux value :)


Guess you like

Origin blog.csdn.net/weixin_34221276/article/details/91394386