react Officially recommends that an app only has one store. How to understand it?
The following project divisions, what does each file mean, and what content is placed in each file?
src
actions
components
containers
reducers
store
大家讲道理2017-06-12 09:26:32
There must be only one store. In a single-page large-scale application, all different pages exist in the form of different components. The communication between components that are too large at each level is to exchange data through a store. Otherwise, how can Communicate
Actions are triggered in components. Users trigger actions in components, and then they are captured by reducers, which process them and return new state
containers is a container