Hi, greate people.
Need help please.
I want to add react code into my Technical Document project.

As show above.
I tried using
<pre>
<code>
</code>
<pre>
Output:
Hello, world!
I would like it to show as raw code.
Ancipating your help. Thanks
Hi @profsaini !
If you want to show the raw code on the page you can use the code and pre tags and inside use html entities for the less than and greater than symbols
<pre>
<code>
ReactDOM.render(
<h1>Hello, world!</h1>,
document.getElementById('root')
);
</code>
</pre>

Thank you so much. With you guys, I’m ready to take Frontend dev job by the end of this month 
system
Closed
4
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.