Controlled
-
[React] Controlled vs Uncontrolled :: 마이구미React 2022. 6. 1. 12:17
이 글은 React 의 contorlled component, uncontrolled component 를 다룬다. 아래 예제 코드를 확인하고, 글 내용을 이해와 리마인드에 도움이 될 것이다. 예제 - https://codesandbox.io/s/controlled-vs-uncontrolled-10rgwj 어디서 접할 수 있는가? React 를 사용하면 Controlled Components, Uncontrolled Components 와 같은 용어를 들어본 적이 있을 것이다. 이 용어들은 Form 요소와 관련이 있다. 이 용어들은 공식 문서에서도 설명되어 있다. 그리고 UI 프레임 워크에서도 uncontrolled, controlled 예제를 따로 명시해서 제공하기도 한다. 꼭 알아야하는가? 이것들을 ..