PrimeLens PrimeLens - 1 year ago 97
Javascript Question

React JSX, how to render text with a single quote? Example <p>I've</p>

In React JSX how can I have the following text include a single quote? Or other punctuation that might need escaping?

return (
<p>I've seen the movie.</p>

Answer Source

Nevermind, it works as is.

It was the IDE that was highlighting it as a mistake

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download