Last active
September 21, 2016 14:57
-
-
Save samsch/8ef40e257e19efc15e98afd90dd5c80d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
import Router from 'routes'; | |
ReactDOM.render( | |
<Router />, | |
document.body | |
); |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Vipfy</title> | |
</head> | |
<body> | |
<div id="root"/> | |
</body> | |
<script src="bin/app.bundle.js"></script> | |
</html> |
This file contains hidden or 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
import React from 'react' | |
import { render } from 'react-dom' | |
import { Router, Route, Link, browserHistory } from 'react-router' | |
import InterfaceLayout from 'components/interface/layout/interfaceLayout' | |
import Marketplace from 'components/interface/marketplace/marketplace' | |
var browserHistory = ReactRouter.browserHistory; | |
const Routes = () => ( | |
<Router history={browserHistory}> | |
<Route path="/interface" component={InterfaceLayout}> | |
<Route path="/marketplace" component={Marketplace} /> | |
</Route> | |
</Router> | |
); | |
//Not sure this is correct. I use CommonJS in my stuff. | |
export default Routes; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment