Skip to content

Instantly share code, notes, and snippets.

@hyukkwonepic
Created November 22, 2016 15:53
Show Gist options
  • Save hyukkwonepic/9308d1720608a2e1bcd372bda6a9e09a to your computer and use it in GitHub Desktop.
Save hyukkwonepic/9308d1720608a2e1bcd372bda6a9e09a to your computer and use it in GitHub Desktop.
var React = require('react');
var ReactDOM = require('react-dom');
var {Route, Router, IndexRoute, hashHistory} = require('react-router');
var Main = require('Main');
var Timer = require('Timer');
var Countdown = require('Countdown');
// Load Foundation
require('style!css!foundation-sites/dist/foundation.min.css');
$(document).foundation();
// App css
require('style!css!sass!applicationStyles');
ReactDOM.render(
<Router history={hashHistory}>
<Route path="/" component={Main}>
<Route path="countdown" component={Countdown}/>
<IndexRoute component={Timer}/>
</Route>
</Router>,
document.getElementById('app')
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment