Show HN: A simple React table library using CSS Grid Layout
1–10 of 29 posts
Re: Show HN: A simple React table library using CSS Grid Layout
#2The SCSS requirement is weird, especially for something meant to be imported by other projects. Why not use styled-components or emotion instead?
Re: Show HN: A simple React table library using CSS Grid Layout
#3Why wouldn't you use proper tables for tables?
Re: Show HN: A simple React table library using CSS Grid Layout
#4Why wouldn't you use proper tables for tables?
Bulk table rendering can have a performance impact on your app and a more minimal implementation may be desired
Re: Show HN: A simple React table library using CSS Grid Layout
#5Why wouldn't you use proper tables for tables?
tables are evil /s
Re: Show HN: A simple React table library using CSS Grid Layout
#6What's the use case for this? You can pretty easily do this already with React + styled-components + CSS grid and still keep it pretty DRY.
Would help if you added more/different examples to show what else it can do beyond that first example.
Re: Show HN: A simple React table library using CSS Grid Layout
#7Why wouldn't you use proper tables for tables?
Bulk table rendering can have a performance impact on your app and a more minimal implementation may be desired
Then the fix is to only render the rows currently in the viewport, right? Seems weird to recreate tables using CSS for that reason.
Re: Show HN: A simple React table library using CSS Grid Layout
#8Why wouldn't you use proper tables for tables?
+1 There are many problems with html tables (like inconsistent buggy implementations between browsers) but grids don't fix them and introduce other problems. You can't group cells in rows / columns html elements. You can't write a simple css selector for a particular cell. You can't easily refer to a whole row with a css selector. You can't do stuff like "highlight the whole row on hover" because you wouldn't have a parent element to select. Grids are for grid layouts, and with current feature set they can't replace tables.
Re: Show HN: A simple React table library using CSS Grid Layout
#9I get (and strongly encourage) using grids instead of tables for layout. But why use grids instead of tables for tables?
Re: Show HN: A simple React table library using CSS Grid Layout
#10What's the benefit of this over react-bootstrap Table which uses an actual tags.