[Table] CSS only implementation
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 99.1k
- Forks
- 32.5k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 106
Description
- I have searched the issues of this repository and believe that this is not a duplicate.
Summary 💡
The current implementation of the table is relatively slow, at least x4 slower than it could be based on https://mui.com/performance/table-component/ vs. https://mui.com/performance/table-mui/. We might want to explore another API, that has fewer features but has better performance.
Examples 🌈
We could consider full CSS API, like https://react-bootstrap.github.io/components/table/.
<Table striped bordered hover>
<thead>
<tr>
<th>#</th>
<th>First Name</th>
<th>Last Name</th>
<th>Username</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Mark</td>
<td>Otto</td>
<td>@mdo</td>
</tr>
<tr>
<td>2</td>
<td>Jacob</td>
<td>Thornton</td>
<td>@fat</td>
</tr>
<tr>
<td>3</td>
<td colSpan="2">Larry the Bird</td>
<td>@twitter</td>
</tr>
</tbody>
</Table>
Motivation 🔦
#27057 raises how the tooltip is slow, but the table is taking even more time.
I suspect that https://mui.com/x/react-data-grid/ solves the root problem now (performance with virtualization). I have opened this GitHub issue anyway because this idea has been in the back of my head for 3 years.
Benchmarks
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the existing Table component entry point and the linked performance comparisons, then compare the referenced React Bootstrap and Mantine table APIs. Done means an agreed reduced CSS-oriented Table API is specified and its performance is demonstrated against the current implementation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend, performance
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100