DEV Community

Discussion on: React - how to create dynamic table

Collapse
 
talorlanczyk profile image
TalOrlanczyk

Well you can make it more dynamic
By take the object keys and run on map to create a to each of them

This approach is no so much dynamic because you can use this only for one senerio

Collapse
 
diraskreact profile image
Dirask-React

Thank you for your comment! 👍
In the next post, I will try to make a more dynamic solution. 🚀

Collapse
 
talorlanczyk profile image
TalOrlanczyk

More dynamic solution us send array of object
With name and other properties of th like colspan

Thread Thread
 
wearypossum4770 profile image
Stephen Smith

Would it be a good design principle to have the style code in the object? Maybe it would create too much overhead and be a potential vector for errors? Could it potentially affect performance?