diff --git a/index.html b/index.html deleted file mode 100644 index 8c37e4a..0000000 --- a/index.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - react router - - -
- - diff --git a/index.js b/index.js deleted file mode 100644 index 5f3578a..0000000 --- a/index.js +++ /dev/null @@ -1,18 +0,0 @@ -import React from 'react'; -import {render} from 'react-dom'; -import App from './modules/App'; -import About from './modules/About' -import Repos from './modules/Repos' -import NavLink from './modules/NavLink' - -import './styles/index.less'; - -import {Router,Route,hashHistory} from 'react-router' -render(( - - - - - - -),document.getElementById('app')) diff --git a/package.json b/package.json index a9ec425..10aee34 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "", "main": "index.js", "scripts": { - "start": "webpack-dev-server --display-error-details --inline --content-base dist", + "start": "webpack-dev-server --display-error-details --inline --content-base dist/ --history-api-fallback", "test": "echo \"Error: no test specified\" && exit 1" }, "author": "", diff --git a/src/components/App.js b/src/components/App.js index 326accc..1277816 100644 --- a/src/components/App.js +++ b/src/components/App.js @@ -1,5 +1,5 @@ import React from 'react'; -import {Link} from 'react-router'; +import { Link,IndexLink } from 'react-router'; import NavLink from './NavLink' export default React.createClass({ @@ -7,8 +7,8 @@ export default React.createClass({ return (

React Router Tutorial

-