리액트 오류: 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·NOTE

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>}

'NOTE' 카테고리의 다른 글

typescript 배열 중 하나 타입으로 선언하기  (0) 2023.08.16
react 패키지를 next로 컴파일 하는 패키지  (0) 2023.08.06
string 대문자, 소문자 체크하기  (0) 2023.05.05
String.charAt(index)  (0) 2023.05.05
배열의 두 요소 순서를 변경할 때  (0) 2023.05.05
'NOTE' 카테고리의 다른 글
  • typescript 배열 중 하나 타입으로 선언하기
  • react 패키지를 next로 컴파일 하는 패키지
  • string 대문자, 소문자 체크하기
  • String.charAt(index)
ssund
ssund
  • ssund
    ssund의 기술블로그
    ssund
  • 전체
    오늘
    어제
    • 분류 전체보기 (73)
      • TECH (22)
      • NOTE (40)
      • DAILY (7)
      • javascript (1)
      • 알고리즘 (0)
  • 블로그 메뉴

    • 홈
    • TECH
    • NOTE
    • DAILY
  • 링크

  • 공지사항

  • 인기 글

  • 태그

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

  • 최근 글

  • 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
상단으로

티스토리툴바