Skip to content

Instantly share code, notes, and snippets.

View kevinhaas's full-sized avatar
🏠
Working from home

♪~ ᕕ(ᐛ)ᕗ kevinhaas

🏠
Working from home
View GitHub Profile
@kevinhaas
kevinhaas / react-routing-example
Last active June 15, 2016 21:02
basic example of routing two components with the react router
~~~~~~~~~~~~~~~~~~~~~~~~~~
BASIC SETUP WITH ROUTING
~~~~~~~~~~~~~~~~~~~~~~~~~~
// This is a basic guide to the React-Router and rendering two Components
// You will need a server setup (node/express) and babel configured for ES6
// You will need to bundle react with webpack/browserify however you choose and require the bundled
files enclosed in <script> tags at the bottom of index.html
// TODO: Expand into Flux, Footer/Navbar/Static Components, Server side rendering, gulp