Can anyone help me with merging 2 pieces of text in React JS, where one part of the text has unique styling? Below is an example of the code:
<div>
<div>
{'If you haven\'t received an email, please check your spam filter or '}
</div>
<div style={{ color: 'red' }}>
try another email address
</div>
</div>
I attempted to use flex
and flex direction
with a value of row
in the parent div, but it didn't work. Here is the outcome when using flex
in the parent div.