search

Home  >  Q&A  >  body text

javascript - How to understand that an APP in redux has only one store, and how to divide the redux project directory?

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?

習慣沉默習慣沉默2786 days ago838

reply all(1)I'll reply

  • 大家讲道理

    大家讲道理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

    reply
    0
  • Cancelreply