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 |