回答編集履歴
1
s
test
CHANGED
@@ -1 +1,25 @@
|
|
1
1
|
その中であれば、Componentからになるのではないでしょうか。reduxというよりはreactの範囲にはなりますが。
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
# React/Reduxアプリケーションの主な構成要素(順不同)
|
6
|
+
|
7
|
+
1. Store - Reduxを使うのであれば、Storeは必然的に必要
|
8
|
+
|
9
|
+
2. Reducers - 最低1つはStoreを作るためには必要
|
10
|
+
|
11
|
+
3. Middlewares - オプション
|
12
|
+
|
13
|
+
4. Action objects - Reduxを使う場合は最低1つは必要
|
14
|
+
|
15
|
+
5. Action creators - Action objectsを生成する関数。超シンプルなサンプルアプリ程度なら不要
|
16
|
+
|
17
|
+
6. Components - 表示に関することを担当 - Reactを使うなら必然的に必要
|
18
|
+
|
19
|
+
7. Containers - データの保持やAPIとのやり取りを担当 - オプション
|
20
|
+
|
21
|
+
8. Selectors - Storeの中のstatesから必要なデータを取り出すためのもの - オプション
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
Components、Store、Reducers、Action objectsがReact/Reduxアプリケーションであれば、必然的に必須になるかと思います。ComponentsはReduxを使わずReact単体を使う場合でも必要なものなので、そういった意味でもComponentsから手をつけるすることが自然かと思います。
|