Skip to content

Instantly share code, notes, and snippets.

@dance2die
Created January 13, 2019 02:38
Dangerous Component
const Dangerous = dangerous.div`
<h1>Who am I?</h1>
<p>Last Name is "${props => props.lastName}"</p>
<p>First Name is "${props => props.firstName}"</p>
<a href="javascript:alert('hi');">Show Alert</a>
`;
function App() {
return <Dangerous firstName="Sung" lastName="Kim" />;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment