Created
February 19, 2019 10:04
-
-
Save williamlsh/74d40a0e5a4043ec25bec5e31d9709ac to your computer and use it in GitHub Desktop.
This file contains hidden or 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
function createMarkup() { | |
return {__html: 'First · Second'}; | |
} | |
function MyComponent() { | |
return <div dangerouslySetInnerHTML={createMarkup()} />; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment