Open4
reactのディレクトリ構成
-
atomic component
- container componentの扱い
- contarnersディレクトリ下にatomic分割した階層を作る
- 関連項目が遠い
- atomic内にcontainer.tsxを作る
- それ以外はpresentational
-
feature folder
- reduxが採用
- https://redux.js.org/faq/code-structure
- 再利用性のあるコンポーネントと機能で分割するfeaturesフォルダに分ける
参考
・hooksの扱いをどうするか
hooksディレクトリ以下に並列に並べる?
再利用性のためと、構造のための分割があるはず