We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdf65e6 commit f8f02c0Copy full SHA for f8f02c0
src/store.ts
@@ -0,0 +1,15 @@
1
+import { combineReducers, createStore } from 'redux'
2
+import { devToolsEnhancer } from 'redux-devtools-extension'
3
+import { CounterReducer } from './features/counter'
4
+
5
+/* Create root reducer, containing all features of the application */
6
+const rootReducer = combineReducers({
7
+ count: CounterReducer,
8
+})
9
10
+const store = createStore(
11
+ rootReducer,
12
+ /* preloadedState, */ devToolsEnhancer({})
13
+)
14
15
+export default store
0 commit comments