I am not able to implement an icon on svg element inside the template literal in react . I get error like [object object].Next to the Other, i wanted to display an icon.enter image description here
enter image description here
Above is the code. If i remove the condition to check seriesName === ‘Other’ then i can easily load SVG but with that condition i am not able to load SVG inside template string. How do i fix it ?
Puja Bhandari is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.