Skip to content

Instantly share code, notes, and snippets.

Created December 18, 2018 19:51
What would you like to do?
React prototype boilerplate
<!DOCTYPE html>
<html lang="en" dir="ltr">
<meta charset="utf-8">
<div id="root"></div>
<script src=""></script>
<script src=""></script>
<script src=""></script>
const html = htm.bind(React.createElement);
const App = () => html`
<h1>Hello world!</h1>
ReactDOM.render(html`<${App} />`, document.getElementById('root'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment