actions
Action simple functions with payloads of information to change state. http://redux.js.org/docs/basics/Actions.html#actionsstore
folder with reducers and store initialization code. Reducers: http://redux.js.org/docs/basics/Reducers.html#reducersstages
orpages
folder of "smart" react views. Views that connected to store with react-redux and their markup JSX. In redux terms files from the folderby default
will return "redux containers". http://redux.js.org/docs/basics/UsageWithReact.html#container-componentscomponents
orviews
dumb views like Buttons or Text views.selectors
functions return part of store to connect with "smart" components. This is not a dogma and simple selectors can be also defined instages/pages
component 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/pages
andapi
. It may decide where to pull data either from HTTPapi
component or from LocalStorageapi
then 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