Tables in React
Use a real <table>, <thead>, <tbody>, <tr>, <th>, <td>. Map rows to <tr key={id}>. Don’t fake a table with twenty divs if the data is tabular — accessibility and copy-paste into Excel both suffer.
Sticky header and sort are extra. First get the markup and keys right. Libraries (TanStack Table) wait until the plain table is boringly correct.
Tables in React — on screen — a two-column marks table. Screen readers get a real <table>.
Semantic table + key on tr.