novaline novaline - 6 months ago 56
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.