- 오류 내용
<tr> cannot appear as a child of <table>.
Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser.
- 해결 방법
- JSX에서는 tr과 td를 tbody 없이 사용할 수 없음
- th도 thead 없이 사용 불가
'React' 카테고리의 다른 글
| [React, Spring Boot] Whitelabel Error Page문제 (0) | 2023.09.07 |
|---|---|
| [React, TypeScript] TradingView lightweight-charts 사용 (0) | 2023.09.07 |
| [React] JS Bites: React hook is called in a function which is neither a React function or a custom React Hook (0) | 2023.09.07 |
| [React] cannot read properties of undefined (reading '컬럼명') 오류 (0) | 2023.09.07 |
| [React, Spring Boot] 파일 다운로드(Blob) (0) | 2023.09.07 |