Created
November 22, 2016 15:53
-
-
Save hyukkwonepic/9308d1720608a2e1bcd372bda6a9e09a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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