DEV Community

Cover image for Project 71 of 100 - Email Preferences Page powered by Redux
James Hubert
James Hubert

Posted on

Project 71 of 100 - Email Preferences Page powered by Redux

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;
Enter fullscreen mode Exit fullscreen mode

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)