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

리액트에서 useEffect의 내부는 어떻게 이루어져 있는가? #27

Merged
merged 1 commit into from
Jul 28, 2024

Conversation

brgndyy
Copy link
Member

@brgndyy brgndyy commented Jul 22, 2024

useEffect 훅 내부구조에 관한 설명글입니다!

편하게 보기

@soi-ha soi-ha requested review from llqqssttyy and soi-ha and removed request for llqqssttyy July 22, 2024 15:05
@soi-ha soi-ha requested review from llqqssttyy and removed request for soi-ha July 23, 2024 01:17
Copy link
Member

@llqqssttyy llqqssttyy left a comment

Choose a reason for hiding this comment

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

원본 글 들어가 보니 주석도 특이하게 달려 있네요. 번역하는 데 특히나 힘들었을 것 같습니다. 고생 많으셨어요!
사실 내용의 10퍼센트만 이해해서 간단한 코멘트 밖에 달 수 없었읍니다. 확인하고 괜찮으시다면 고쳐주세요.
(건디는 마지막 문제 맞췄나요? 저는 틀림요..)


우리는 deps 배열이 어떻게 작동하는지 알 수 있습니다. 다시 렌더링할 때, deps가 변경되지 않는 경우를 제외하고는 Effect 객체를 다시 생성합니다. deps가 변경되면, 생성된 Effect는 실행되도록 표시되며, 이전의 정리 함수가 함께 사용됩니다.

## 3. 효과가 언제 그리고 어떻게 실행되고 정리되는가?
Copy link
Member

Choose a reason for hiding this comment

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

용어를 통일해서 그냥 'Effect'로 해도 좋을 것 같아요.


## 퀴즈

오늘 배운것을 토대로 한번 위 문제를 풀어보세요.
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 Author

Choose a reason for hiding this comment

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

저도요..

@llqqssttyy llqqssttyy merged commit b1e15d6 into main Jul 28, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants