Skip to content

Instantly share code, notes, and snippets.

@busticated
Created November 26, 2014 17:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save busticated/797d552bc8c47174c4e5 to your computer and use it in GitHub Desktop.
Save busticated/797d552bc8c47174c4e5 to your computer and use it in GitHub Desktop.
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