귤죠아
Home
  • 분류 전체보기 (12)
    • 🎡 (2)
    • FrontEnd (5)
      • HTML_CSS (0)
      • JS (1)
      • React (3)
    • Error (5)
Home
  • 분류 전체보기 (12)
    • 🎡 (2)
    • FrontEnd (5)
      • HTML_CSS (0)
      • JS (1)
      • React (3)
    • Error (5)
블로그 내 검색
Github

귤죠아

귤을 좋아하는 프론트엔드 개발자

  • Error

    [React] Warning: You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.

    2022. 11. 8.

    by. 귤죠아

    반응형

    에러 내용

    더보기

    Warning: You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.

     

    에러 이유

    • input의 'value'값이 유동적으로 변하는 경우 readOnly 속성을 추가해 주거나 value를 'defaultValue'로 바꾸어 사용해야 한다.

     

    해결

    value 속성을 defaultValue로 바꾸어 줌

     

    반응형

    'Error' 카테고리의 다른 글

    [React] cross-env: command not found  (0) 2023.03.28
    [React] Warning: Each child in a list should have a unique "key" prop.  (0) 2022.11.09
    [파일질라] 서버 연결 실패 오류  (2) 2022.11.07
    [React] Warning: validateDOMNesting(...): div cannot appear as a child of table.  (0) 2022.11.07

    댓글

    관련글

    • [React] cross-env: command not found 2023.03.28
    • [React] Warning: Each child in a list should have a unique "key" prop. 2022.11.09
    • [파일질라] 서버 연결 실패 오류 2022.11.07
    • [React] Warning: validateDOMNesting(...): div cannot appear as a child of table. 2022.11.07
    맨 위로
전체 글 보기
Tistory 로그인
Tistory 로그아웃
로그아웃 글쓰기 관리

Today

Total

Powered by ⓒ Kakao Corp.

Designed by Nana
블로그 이미지
귤죠아

티스토리툴바