Skip to content

Commit

Permalink
Deal with configureStore
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown committed Sep 3, 2020
1 parent c99db9b commit 15dc8f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ Learning Vanilla-Redux and React-Redux
- Deleting To do
- Detail Screen
- Deal with Creact Action
- Deal with CreateReducer
- Deal with CreateReducer
- Deal with configureStore (req : redux toolkit)
4 changes: 2 additions & 2 deletions src/store.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createStore } from "redux";
import { createAction,createReducer } from "@reduxjs/toolkit";
import { createAction, createReducer, configureStore } from "@reduxjs/toolkit";


/*
Expand Down Expand Up @@ -44,7 +44,7 @@ const reducer = createReducer([], {
state.filter(toDo => toDo.id !== action.payload)
})

const store = createStore(reducer);
const store = configureStore({ reducer });

export const actionCreators = {
addToDo,
Expand Down

0 comments on commit 15dc8f5

Please sign in to comment.