Hey! I'm on a mission to make 100 React.js projects ending May 31st. Please follow my dev.to profile or my twitter for updates and feel free to reach out if you have questions. Thanks for your support!
Link to today's deployed app: Link
Link to the repo: github
Just an email preferences page powered by Redux.
The only major thing different about this project from yesterday's is that we conglomerated multiple reducers into one with the combineReducers() redux method. Though in this project you only see one reducer so it's less of a dramatic feature.
import mailPreferences from "./mailPreferences"
const redux = require("redux")
const {combineReducers, createStore} = redux
const rootReducer = combineReducers({
mail: mailPreferences
})
const store = createStore(rootReducer)
store.subscribe(() => {
console.log(store.getState())
})
export default store;
More Redux tomorrow- finally getting to the react-redux
package.
If you like projects like this and want to stay up to date with more, check out my Twitter @jwhubert91, I follow back! See you tomorrow for another project.
Top comments (0)