novaline novaline - 9 months ago 68
React JSX Question

How to output raw brace `{}` in react?

html:

<p>{...}</p>


I want to get the output like this:

{...}


How to do this ? Thanks~

Answer

<p>{"{...}"}</p> Should work.