My reading journal for Code Fellows
Why create multiple reducers?
How would you combine multiple reducers?
createStore() method. In order to let us combine multiple reducers together, Redux provides the combineReducers() method.How will you manage state as an immutable object? why?
Redux Docs: Using Combined Reducers
combineReducers is a utility function to simplify the most common use case when writing _ ___ .
Explain how combineReducers assembles the new state tree.
combineReducers will call each slice reducer with its current slice of state and the current action, giving the slice reducer a chance to respond and update its slice of state if neededHow would you define initial state in an app using combineReducers?
combineReducers takes an object full of slice reducer functions, and creates a function that outputs a corresponding state object with the same keysRedux Docs: Combined Reducer Syntax
Why will you want to split your reducing functions as your app becomes more complex?
The ___ helper function turns an object whose values are different reducing functions into a single reducing function you can pass to __.
combineReducers createStoreWhat is a popular convention when naming reducers?
What are your learning goals after reading and reviewing the class README?