You can use dangerouslySetInnerHTML
prop to render HTML in React. It is used to set HTML directly from React. You should be careful while using this property as it can cause XSS attacks.
Search
Aug 17, 2024, 1 min read
You can use dangerouslySetInnerHTML
prop to render HTML in React. It is used to set HTML directly from React. You should be careful while using this property as it can cause XSS attacks.