質問編集履歴

1

configureStoreを追加いたしました。

2021/04/23 13:27

投稿

e.senaha
e.senaha

スコア20

test CHANGED
File without changes
test CHANGED
@@ -50,6 +50,38 @@
50
50
 
51
51
 
52
52
 
53
+ ```
54
+
55
+ configureStore
56
+
57
+
58
+
59
+ import { configureStore } from "@reduxjs/toolkit";
60
+
61
+ import counterReducer from "../features/counter/counterSlice";
62
+
63
+ import loginReducer from "../features/login/loginSlice";
64
+
65
+
66
+
67
+ export const store = configureStore({
68
+
69
+ reducer: {
70
+
71
+ counter: counterReducer,
72
+
73
+ login: loginReducer,
74
+
75
+ },
76
+
77
+ });
78
+
79
+
80
+
81
+ ```
82
+
83
+
84
+
53
85
  ```ここに言語名を入力
54
86
 
55
87
  loginSlice.js