Skip to content

Instantly share code, notes, and snippets.

@itaditya
Created September 28, 2020 04:30
Show Gist options
  • Save itaditya/b0686be54d2a8fe5db7a3173e4cbb5c5 to your computer and use it in GitHub Desktop.
Save itaditya/b0686be54d2a8fe5db7a3173e4cbb5c5 to your computer and use it in GitHub Desktop.
(Blog) Build a Redux hooked app
const initialState = {
diet: 'all',
menuById: {},
menuIdList: {
all: [],
veg: [],
},
cartByIds: {},
}
function foodReducer(state = initialState, action) {
// rest of the code
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment