Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
April 10, 2022 01:05 pm GMT

Render HTML tag in Next JS or React JS

If we use WYSIWYG Editor in our content usually it will be save as HTML in Database.

render HTML tag in React / Next JS very simply with 'dangerouslySetInnerHTML'

Example:

const content = `<b>Test Content</b>`;<p dangerouslySetInnerHTML={{ __html: content }}></p>

Original Link: https://dev.to/agiksetiawan/render-html-tag-in-next-js-or-react-js-3cfe

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To