Created
October 25, 2022 08:24
-
-
Save victorbruce/83dfb6c6306cb61ae8ed2cdfe0aa843e to your computer and use it in GitHub Desktop.
adding a reducer to a store
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { configureStore } from "@reduxjs/toolkit" | |
import noteReducer from "slice" | |
export const store = configureStore({ | |
reducer: { | |
notes: noteReducer | |
} | |
}) | |
export type RootState = ReturnType<typeof store.getState> | |
export type AppDispatch = typeof store.dispatch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment