Skip to content

Commit f3c4452

Browse files
committed
10-lesson;
1 parent bff9235 commit f3c4452

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

lessons/10-clean-urls/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
<html>
33
<meta charset=utf-8/>
44
<title>My First React Router App</title>
5-
<link rel=stylesheet href=index.css>
5+
<link rel=stylesheet href="/index.css">
66
<div id=app></div>
7-
<script src="bundle.js"></script>
7+
<script src="/bundle.js"></script>

lessons/10-clean-urls/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import React from 'react'
22
import { render } from 'react-dom'
3-
import { Router, Route, hashHistory, IndexRoute } from 'react-router'
3+
import { Router, Route, browserHistory, IndexRoute } from 'react-router'
44
import App from './modules/App'
55
import About from './modules/About'
66
import Repos from './modules/Repos'
77
import Repo from './modules/Repo'
88
import Home from './modules/Home'
99

1010
render((
11-
<Router history={hashHistory}>
11+
<Router history={browserHistory}>
1212
<Route path="/" component={App}>
1313
<IndexRoute component={Home}/>
1414
<Route path="/repos" component={Repos}>

lessons/10-clean-urls/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "",
55
"main": "index.js",
66
"scripts": {
7-
"start": "webpack-dev-server --inline --content-base ."
7+
"start": "webpack-dev-server --inline --content-base . --history-api-fallback"
88
},
99
"author": "",
1010
"license": "ISC",

0 commit comments

Comments
 (0)