Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

rtk configurestore

import { configureStore } from '@reduxjs/toolkit';
import todoReducer from '../features/todoSlice';

export default configureStore({ 
  reducer: {
    todo: todoReducer
  }
});
 
PREVIOUS NEXT
Tagged: #rtk #configurestore
ADD COMMENT
Topic
Name
9+2 =