Translate Conditional Rendering by Jonir227 · Pull Request #26 · reactjs/ko.react.dev
| React에서는 원하는 동작을 캡슐화하는 별개의 컴포넌트를 만들 수 있습니다. 그러면 애플리케이션의 상태에 따라서 컴포넌트 중 몇 개만을 렌더링할 수 있습니다.. | ||
|
|
||
| Conditional rendering in React works the same way conditions work in JavaScript. Use JavaScript operators like [`if`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/if...else) or the [conditional operator](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Operators/Conditional_Operator) to create elements representing the current state, and let React update the UI to match them. | ||
| React에서 조건부 렌더링은 자바스크립트에서의 조건 처리와 같게 동작합니다. [`if`](https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Statements/if...else) 나 [`조건부 연산자`](https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Operators/Conditional_Operator) 와 같은 자바스크립트 연산자를 현재 상태를 나타내는 요소들를 만드는 데에 사용하세요. 그러면 React는 현재 상태에 맞게 UI를 업데이트합니다. |
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
조건 처리와 같게보다는 조건 처리와 동일하게가 좀 더 자연스러울 것 같습니다.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
넵 말씀해 주신 것이 더 자연스러운것 같습니다.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
자바스크립트→JavaScript요소→엘리먼트
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
한자를 사용하지 않고 조건 처리와 같이로 처리했습니다.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
조건 처리와 같이 -> 조건 처리와 같은 방식으로
같이만으로는 코드의 평가(evaluation)가 동시에 진행되는지 혹은 동작 원리가 동일한지 명확히 드러나지 않는 것 같아요. 원문에는 작동 방식에 대해 설명하고 있으므로 위처럼 제안드려봐요.