質問編集履歴
1
configureStoreを追加いたしました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -24,6 +24,22 @@
|
|
24
24
|
|
25
25
|
### 該当のソースコード
|
26
26
|
|
27
|
+
```
|
28
|
+
configureStore
|
29
|
+
|
30
|
+
import { configureStore } from "@reduxjs/toolkit";
|
31
|
+
import counterReducer from "../features/counter/counterSlice";
|
32
|
+
import loginReducer from "../features/login/loginSlice";
|
33
|
+
|
34
|
+
export const store = configureStore({
|
35
|
+
reducer: {
|
36
|
+
counter: counterReducer,
|
37
|
+
login: loginReducer,
|
38
|
+
},
|
39
|
+
});
|
40
|
+
|
41
|
+
```
|
42
|
+
|
27
43
|
```ここに言語名を入力
|
28
44
|
loginSlice.js
|
29
45
|
|