You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 24, 2023. It is now read-only.
In Milestone 4 , the initialState object to be included as individual 'initial states' in the respective reducers instead of having them in src/index.js. For instance in the book reducer we can have an initial state:
Also we should probably include here a step to put store creation in its own file (i.e, in a src/store/index.js file as it is a common practice in redux projects (at least in those projects I previously encountered). This helps the student to have a clearer way of structuring redux projects.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi @arielcamus,
In Milestone 4 , the
initialState
object to be included as individual 'initial states' in the respective reducers instead of having them insrc/index.js
. For instance in the book reducer we can have an initial state:const initialState = [{<book1 object>}, {<book2 object>}]
This makes a cleaner index.js.
Also we should probably include here a step to put store creation in its own file (i.e, in a
src/store/index.js
file as it is a common practice in redux projects (at least in those projects I previously encountered). This helps the student to have a clearer way of structuring redux projects.The text was updated successfully, but these errors were encountered: