DEV Community

loading...

Discussion on: How to create customized dynamic table in React (with dynamic header)

Collapse
talorlanczyk profile image
TalOrlanczyk • Edited

Great one but just for you to notice there is thead for the header
The tag is used to group the header content in an HTML table. The thead element should be used in conjunction with the tbody and tfoot elements.
Also a little tip:
You can add the rest of the props in map header
To the tag like colspan so it by itself do this

Collapse
diraskreact profile image
Dirask-React Author

Thanks for the tips! 😊🔥