DEV Community

Cover image for How can I use <pre/> tag in react JS ?
Gustavo Henrique Silva Tenório
Gustavo Henrique Silva Tenório

Posted on

How can I use <pre/> tag in react JS ?

Hellow my fellows!

Yesterday I learn a small detail, but important. I tried to add a code example using <pre> tag in my react page to create my web portfolio. But, the <pre> tag doesn't worked as expected.

How should I use ?

Simple, we need use the ` character to envolve the code example.

pre_tag_example

Simple :D!

Top comments (1)

Collapse
 
mahendranmurugan profile image
Mahendran Murugan

Thanks Man...!