actionsAction simple functions with payloads of information to change state. http://redux.js.org/docs/basics/Actions.html#actionsstorefolder with reducers and store initialization code. Reducers: http://redux.js.org/docs/basics/Reducers.html#reducersstagesorpagesfolder of "smart" react views. Views that connected to store with react-redux and their markup JSX. In redux terms files from the folderby defaultwill return "redux containers". http://redux.js.org/docs/basics/UsageWithReact.html#container-componentscomponentsorviewsdumb views like Buttons or Text views.selectorsfunctions return part of store to connect with "smart" components. This is not a dogma and simple selectors can be also defined instages/pagescomponent files. Only one case when you create file in this folder, when you use the same part of app state in severalstages/pages.api- ...triggers- service to that stays betweenstages/pagesandapi. It may decide where to pull data either from HTTPapicomponent or from LocalStorageapithen dispatch anaction.
Created
November 15, 2016 16:52
-
-
Save RusAlex/e1d14b7c09e3ecef9486f718d7d56bee to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment