인풋 요소에서 onChange를 기입하지 않으면 제목과 같이 이런 경고 메시지가 뜹니다.
A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components
이런 경고가 떴을 때 value 대신 defaultValue를 주거나, readOnly 속성을 주거나, onChange를 기입하면 문제가 해결되던데요,
경고는 해결할 수 있지만, 왜 이런 경고가 뜨는 건가요?