Translate : Updating arrays in state#650
Merged
hg-pyun merged 6 commits intoreactjs:mainfrom May 29, 2023
Merged
Conversation
hg-pyun
requested changes
May 19, 2023
| - React state에서 배열의 항목을 추가, 삭제 또는 변경하는 방법 | ||
| - 배열 내부의 객체를 업데이트하는 방법 | ||
| - Immer로 배열을 덜 반복해서 복사하는 방법 | ||
| - Immer로 덜 반복적으로 배열을 복사하는 방법 |
Member
There was a problem hiding this comment.
Suggested change
| - Immer로 덜 반복적으로 배열을 복사하는 방법 | |
| - Immer로 덜 반복해서 배열을 복사하는 방법 |
| </Sandpack> | ||
|
|
||
| 또한 Immer를 사용하여 변경 및 비변경 접근 방식을 섞어서 사용할 수 있습니다. | ||
| 또한 Immer를 사용하여 변경 및 비변경 접근 방식을 혼용할 수 있습니다. |
Member
There was a problem hiding this comment.
혼용은 보통 부정적인 단어로 많이 쓰여서 아래와 같이 번역하면 어떨까 싶습니다.
Suggested change
| 또한 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) 사용할 수 있습니다. 손쉽게 변경 문법을 사용하여 작성할 수 있고 복사본을 생성해주어 처리할 수 있습니다. |
Member
There was a problem hiding this comment.
Suggested change
| - state 구조를 변경하고 싶지 않다면, [Immer](https://github.com/immerjs/use-immer) 사용할 수 있습니다. 손쉽게 변경 문법을 사용하여 작성할 수 있고 복사본을 생성해주어 처리할 수 있습니다. | |
| - state 구조를 변경하고 싶지 않다면, [Immer](https://github.com/immerjs/use-immer) 사용할 수 있습니다. 손쉽게 변경 문법을 사용하여 작성할 수 있고 복사본을 생성하여 처리할 수 있습니다. |
Size changesDetails📦 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! 🙌 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Progress