themoviedb-react
themoviedb-react copied to clipboard
[Question] Where did you get the idea to create the DefaultState.js file in your Redux folder?
Hi, I am learning redux, and looking at how you structured your project, as I am trying to understand different ways people of structured there redux files.
The way I have seen most people structure there initial state is usually just within the actual reducer file, so something like:
const initialState = {
something: false,
somethingElse: {}
};
but you instead made this logic live in DefaultState.js?
- https://github.com/lviit/themoviedb-react/blob/master/src/js/redux/DefaultState.js
I wanted to know where you got the idea to create the DefaultState.js file, which you later passed into combineReducers in the store, ( any website links I can read about this on ? ) I have been looking online, and have not been able to find any examples or explanations on the redux docs site.
By the way, Awesome project!