A component is changing the uncontrolled value state of Select to be controlled.
Elements should not switch from uncontrolled to controlled (or vice versa).
Decide between using a controlled or uncontrolled Select element for the lifetime of the component.
The nature of the state is determined during the first render. It's considered controlled if the value is not undefined.
위와 같은 에러는 초기값이 undefined
였다가 렌더링 과정에서 값이 들어와서 defined value로 바뀌면서 일어나는 에러다.
controlled component를 사용하고 싶다면 초기값이 undefined가 되지 않도록 ""나 null을 값으로 넘겨야 한다.