javascript - How to understand that an APP in redux has only one store, and how to divide the redux project directory?
習慣沉默
習慣沉默 2017-06-12 09:24:32
0
1
799

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

習慣沉默
習慣沉默

reply all(1)
大家讲道理

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template