리액트 오류: React DOMException: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node

2023. 8. 5. 01:30·React

React DOMException: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node
리액트 프로젝트 중 위와같은 오류메세지가 나왔다. 

 

{state && <i>test</i>}

 

리액트에서 i태그를 node로 인지하지 않아서 그러는 이슈같다. 

인지할수 있는 node로 감싸주면 해결 완료 

 

{state && <div><i>test</i></div>}

'React' 카테고리의 다른 글

react 프로젝트에서 import순서 정렬  (0) 2023.09.08
react-hook-form validate with zod  (0) 2023.08.17
styles jsx  (0) 2023.07.07
react module.css  (0) 2023.07.07
gh-pages을 이용하여 Github Pages에 배포하기  (0) 2023.03.15
'React' 카테고리의 다른 글
  • react 프로젝트에서 import순서 정렬
  • react-hook-form validate with zod
  • styles jsx
  • react module.css
ssund
ssund
  • ssund
    ssund의 기술블로그
    ssund
  • 전체
    오늘
    어제
    • TECH (82)
      • Next.js (8)
      • React (25)
      • Vite (1)
      • javascript (17)
      • CSS (6)
      • CS (10)
      • AWS (0)
      • Jest (1)
      • CI|CD (0)
      • 알고리즘 (8)
      • Tools (1)
      • Tips (5)
  • 블로그 메뉴

    • 링크

    • 공지사항

    • 인기 글

    • 태그

      nextjs
      TypeScript
      react state management
      타입스크립트
      커머스프로젝트
      React
      theme-provider
      웹브라우저구성
      global-style
      함수와 메서드차이
      styled-components
      call signatures
      app-router
      서버컴포넌트
      reat-head
      JavaScript
      redux
      배열요소순서
      Array.sort()
      git배포
    • 최근 댓글

    • 최근 글

    • hELLO· Designed By정상우.v4.10.0
    ssund
    리액트 오류: React DOMException: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node
    상단으로

    티스토리툴바