novaline novaline - 1 year ago 83
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 Source

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