arrow_backBACK TO DRILLS
Blue BeltssrPREMIUM
Hydration Mismatch From Missing thead/tbody Wrappers in an HTML Table
This table renders rows directly as children of <table> with no section wrapper.
REACT_MODULE // 0x42
function ScoreTable({ rows }) {
return (
<table>
{rows.map(row => (
<tr key={row.id}>
<td>{row.name}</td>
<td>{row.score}</td>
</tr>
))}
</table>
);
}When server-rendered in a Next.js app, this triggers a hydration mismatch warning. Why?