-
-
Notifications
You must be signed in to change notification settings - Fork 474
Translate : Updating arrays in state #650
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
Conversation
|
||
</Intro> | ||
|
||
<YouWillLearn> | ||
|
||
- React state에서 배열의 항목을 추가, 삭제 또는 변경하는 방법 | ||
- 배열 내부의 객체를 업데이트하는 방법 | ||
- Immer로 배열을 덜 반복해서 복사하는 방법 | ||
- Immer로 덜 반복적으로 배열을 복사하는 방법 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Immer로 덜 반복적으로 배열을 복사하는 방법 | |
- Immer로 덜 반복해서 배열을 복사하는 방법 |
@@ -1781,9 +1781,9 @@ ul, li { margin: 0; padding: 0; } | |||
|
|||
</Sandpack> | |||
|
|||
또한 Immer를 사용하여 변경 및 비변경 접근 방식을 섞어서 사용할 수 있습니다. | |||
또한 Immer를 사용하여 변경 및 비변경 접근 방식을 혼용할 수 있습니다. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
혼용은 보통 부정적인 단어로 많이 쓰여서 아래와 같이 번역하면 어떨까 싶습니다.
또한 Immer를 사용하여 변경 및 비변경 접근 방식을 혼용할 수 있습니다. | |
또한 Immer를 사용하여 변경 및 비변경 접근 방식을 함께 사용할 수 있습니다. |
- 일반적으로 깊은 레벨까지의 state를 업데이트 할 필요는 없습니다. state 객체가 매우 깊다면 [다르게 재구성](/learn/choosing-the-state-structure#avoid-deeply-nested-state)하여 평평하게 만들 수 있습니다. | ||
- state 구조를 변경하고 싶지 않다면 [Immer](https://github.com/immerjs/use-immer) 사용을 선호할 수 있습니다. 손쉽게 변경 문법을 사용하여 작성할 수 있고 복사본을 처리할 수 있습니다. | ||
- 일반적으로 깊은 레벨까지의 state를 업데이트할 필요는 없습니다. state 객체가 매우 깊다면 [다르게 재구성](/learn/choosing-the-state-structure#avoid-deeply-nested-state)하여 평평하게 만들 수 있습니다. | ||
- state 구조를 변경하고 싶지 않다면, [Immer](https://github.com/immerjs/use-immer) 사용할 수 있습니다. 손쉽게 변경 문법을 사용하여 작성할 수 있고 복사본을 생성해주어 처리할 수 있습니다. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- state 구조를 변경하고 싶지 않다면, [Immer](https://github.com/immerjs/use-immer) 사용할 수 있습니다. 손쉽게 변경 문법을 사용하여 작성할 수 있고 복사본을 생성해주어 처리할 수 있습니다. | |
- state 구조를 변경하고 싶지 않다면, [Immer](https://github.com/immerjs/use-immer) 사용할 수 있습니다. 손쉽게 변경 문법을 사용하여 작성할 수 있고 복사본을 생성하여 처리할 수 있습니다. |
Size changes📦 Next.js Bundle Analysis for react-devThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Progress