16 lines
319 B
TypeScript
16 lines
319 B
TypeScript
'use client'
|
|
|
|
import { configureStore } from "@reduxjs/toolkit"
|
|
import couterReducer from "./features/couterSlice"
|
|
|
|
|
|
export const store = configureStore({
|
|
reducer: {
|
|
counter: couterReducer
|
|
},
|
|
})
|
|
|
|
export type RootState = ReturnType<typeof store.getState>
|
|
export type AppDispatch = typeof store.dispatch
|
|
|