Skip to content

Commit 9bda307

Browse files
committed
Merge pull request #2 from robcolburn/patch-1
Hipster-imports
2 parents 39412ae + bcd8815 commit 9bda307

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/index.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
const React = require('react');
1+
import React = require('react');
2+
import Router, {Route, DefaultRoute} = require('react-router');
23
import {mount} from './app/lib/tools';
34

45
// For mounting App component into <section id="app"></section> use:
@@ -12,10 +13,6 @@ import App from './app/components/App';
1213
import Home from './app/components/Home';
1314
import About from './app/components/About';
1415

15-
const Router = require('react-router');
16-
const Route = Router.Route;
17-
const DefaultRoute = Router.DefaultRoute;
18-
1916
const routes = (
2017
<Route name="app" path="/" handler={App}>
2118
<Route name="home" handler={Home}/>

0 commit comments

Comments
 (0)