Skip to content

[오혜성] 챕터 14, 15 #111

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions 챕터_14/오혜성.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# 리액트 애플리케이션 구조
* 기능별 그룹화

```
- product
- cart
- user
```

- 변경 사항이 특정 부분에 제한된다는 장점
- 모듈 간 공통적으로 사용하는 것들에 대해 주기적으로 파악해야만 중복을 피하고 재사용성을 높일 수 있다는 단점

* 파일 유형별 그룹화

```
- components
- pages
- api
- styles
```

- 장점
- 표준 구조
- 빠른 적응
- 공통 컴포넌트 및 스타일 변경 용이
- 단점
- 모듈 수정 시 여러 폴더 수정 필요
- 파일 찾기 어려움

* 혼합(하이브리드) 그룹화

```
- components
- pages
- api
- styles
- domain
- product
- cart
- user
```

> 혼합 구조를 별 생각없이 일반적으로 쓰고 있었음
3 changes: 3 additions & 0 deletions 챕터_15/오혜성.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# 결론

- https://www.patterns.dev/