Tuesday 20 December 2016

reactjs - Flux scope in a React application

I have been working on React components for a while and yesterday just did my first Flux example from https://github.com/tildedave/flux-feature-flags



Just wondering the scope of Flux. In Flux we have Stores, Dispatchers etc, are they available just for one React component, each React component has it's own Flux structure?



Or they are available globally? so the whole application shares Stores, Dispatchers etc, making them available to all React components used in this app

No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...