I need to have something like
<p>{</p> // code <p>}</p> How can i use the curly parenthesis without it erroring and say expression needed? Is there an escape character that i can use? i.e. "\""
I need to have something like
<p>{</p> // code <p>}</p> How can i use the curly parenthesis without it erroring and say expression needed? Is there an escape character that i can use? i.e. "\""
Well, this is a pretty solution. use the same curly brackets for display curly brackets.
{'{'} {'}'} I know there's already plenty of answers but just for completion, I recommend using semantic HTML, in this case I am talking specifically about the code tag (see docs here):
<code>{`{ hello }`}</code> You can use the backtick to avoid the use of many single or double quotes.