Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
react derpery...
<html>
<head></head>
<body>
<!-- #container wraps the entire page's markup (except on-demand stuff like modals) -->
<!-- #container's children and classnames change based on the current view / route -->
<div id="#container" class="VIEW VIEW--MODE">
<nav></nav>
<header></header>
<main></main>
<footer></footer>
</div>
<script>window.__props = { props: 'go here' };</script>
<script src="/path/to/main.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment