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?
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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
Thank you for your comment! 👍
In the next post, I will try to make a more dynamic solution. 🚀
More dynamic solution us send array of object
With name and other properties of th like colspan
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?