Open Shanmukha1217 opened 10 months ago
try
import {configureStore} from '@reduxjs/toolkit'; import todoReducer from '../features/todo/todoSlice'; export const store= configureStore({ reducer:todoReducer })
problem is basically with curly brackets, remove them and it will work perfectly
export const store = configureStore({ reducer: todoReducer }) use this
import { configureStore } from "@reduxjs/toolkit"; import { todoSlice } from "../features/todo/todoSlice"; //Change the import
export const store = configureStore({ reducer: todoSlice.reducer, // Use todoSlice.reducer as the reducer });