Skip to content

Commit f8f02c0

Browse files
committed
Configure store
1 parent bdf65e6 commit f8f02c0

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/store.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)