Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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