Skip to content
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

[신승준] 챕터 7: 자바스크립트 디자인 패턴 (2/3) #60

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

metacode22
Copy link
Contributor

No description provided.

Comment on lines +241 to +245
[리액트 개발팀은 컴포넌트의 유지보수와 재사용을 복잡하게 만든다는 이유로 믹스인을 반대했다.](https://ko.legacy.reactjs.org/blog/2016/07/13/mixins-considered-harmful.html)

- 종속성이 명확하지 않음. 어떤 mixin에서 선언되었길래 사용할 수 있는건지 모름
- 이름이 충돌할 수 있음. AMixin에서 handleChange, BMixin에서도 handleChange를 선언할 수도 있음. 마지막에 선언된 것을 사용하겠지만 명식적이지 않아 버그 발생 가능성이 높음.
- 코드 복잡도가 증가함. 유지보수가 어려워짐
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍👍👍

Copy link
Member

@hyesungoh hyesungoh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏 👏 👏 👏 👏

@metacode22 metacode22 merged commit 45c8243 into main Nov 12, 2024
1 check passed
@metacode22 metacode22 deleted the 챕터7_2/신승준 branch November 12, 2024 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants