0

I think this question has been asked before but I couldn't find a satisfactory answer. I am building 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 code the result

1 Answer 1

1

Try wrapping your string in a p tag like:

<p>Bla bla bla <span>...</span></p> 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.