arrow_backBACK TO DRILLS
Blue Belt - MediumssrPREMIUM
HTML Table Structure and Next.js Hydration
This table renders rows directly as children of <table> with no section wrapper.
//REACT_MODULE
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?