I am importing a string from an api to display on a web page using react. The contents of the string is: "Name \n Last Name". How do I get React to display the line break contained in the string?
I am able to change to change the contents of the string on the backend of the api. I have tried both "\n" and the br tag, but neither seem to work.
My react code looks like this:
<div className="definition">
{this.state.definition}
</div>