teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

configureStoreを追加いたしました。

2021/04/23 13:27

投稿

e.senaha
e.senaha

スコア20

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