Answers for "how to render html string in react"

2

react render string as html

<div dangerouslySetInnerHTML={{__html: 'First &middot; Second'}} />
Posted by: Guest on May-16-2020
0

render text as html react

<div dangerouslySetInnerHTML={{__html: '<strong>strong text</strong>'}} />
Posted by: Guest on August-10-2021

Code answers related to "how to render html string in react"

Browse Popular Code Answers by Language