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 |