Warning: A component is changing an uncontrolled input of type text to be controlled. Input elements should not switch from uncontrolled to controlled (or vice versa).

이게 도대체 무슨 에러인가 했는데,,, 초기값 셋팅을 안해줘서 발생하는 문제였다.

간한하게 해결하는 방법은 아래처럼 해주는 방법이 있다.

value={settings.es_hosts || ”}

index.js:1 Warning: A component is changing an uncontrolled input of type text to be controlled. Input elements should not switch from uncontrolled to controlled (or vice versa). Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://fb.me/react-controlled-components