I am doing a page using React and I need to make some parts of the text bold. Normally I would do this using span tags but the problem is that the text is coming from an array. I tried including the span tag in the array by concatenation but I am getting a weird result. Anyone knows a workaround?
The result:
The code:
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (2)
Id recommend using the
<i>
html over span as its designed to make it italics and will help accessibility readersw3schools.com/html/html_formatting....
You do it just like this