Dec 7, 2022
It's actually better to parse the data outside of the component responsible for _rendering_ the data and just let the label render the string label passed in. This would actually give you both low coupling and high cohesion and get rid of that rat's nest.