카테고리 없음

<input> value에 undefined, null 쓰지말자! - A component is changing a controlled input to be uncontrolled, value` prop on `input` should not be null

sunny___ 2024. 6. 13. 11:46
반응형

react-dom.development.js:86 Warning: A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, 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

 

 

react-dom.development.js:86 Warning: `value` prop on `input` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.

반응형