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

8 2

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...!

Neon image

Next.js applications: Set up a Neon project in seconds

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Get started →

👋 Kindness is contagious

If this article connected with you, consider tapping ❤️ or leaving a brief comment to share your thoughts!

Okay