Skip to content

Commit 75327ee

Browse files
committed
fixed imports
1 parent 9bda307 commit 75327ee

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-es7",
3-
"version": "0.0.19",
3+
"version": "0.0.20",
44
"description": "Example of using React + Reflux + router + ES6 with experimental ES7 syntax + Jest + Semantic-UI",
55
"main": "src/index.js",
66
"scripts": {
@@ -38,7 +38,7 @@
3838
"rimraf": "^2.3.3"
3939
},
4040
"dependencies": {
41-
"lodash": "^3.8.0",
41+
"lodash": "^3.9.3",
4242
"react": "^0.13.3",
4343
"react-router": "^0.13.3",
4444
"react-semantify": "^0.3.1",

src/index.js

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

54
// For mounting App component into <section id="app"></section> use:
@@ -13,6 +12,8 @@ import App from './app/components/App';
1312
import Home from './app/components/Home';
1413
import About from './app/components/About';
1514

15+
import Router, {Route, DefaultRoute} from 'react-router'
16+
1617
const routes = (
1718
<Route name="app" path="/" handler={App}>
1819
<Route name="home" handler={Home}/>

0 commit comments

Comments
 (0)