novaline novaline - 2 months ago 11
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.

Comments