Skip to content

Instantly share code, notes, and snippets.

@williamlsh
Created February 19, 2019 10:04
Show Gist options
  • Save williamlsh/74d40a0e5a4043ec25bec5e31d9709ac to your computer and use it in GitHub Desktop.
Save williamlsh/74d40a0e5a4043ec25bec5e31d9709ac to your computer and use it in GitHub Desktop.
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