Created
August 29, 2018 03:35
-
-
Save amakhrov/f964bcfd480e168fd2c62fea253a5eca to your computer and use it in GitHub Desktop.
React HTML rendering
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const someHtmlContent = '<strong>highlighted text</strong> and regular text'; | |
const HtmlComponent = () => { | |
return ( | |
<div> | |
<h2>Rendering HTML content below</h2> | |
<div>/* How do you put the html content inside? */</div> | |
</div> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment