Skip to content
This repository was archived by the owner on Jul 19, 2019. It is now read-only.

Commit 920ca5d

Browse files
committed
Complete Lesson 10: Clean URLs
1 parent 2ec7fd8 commit 920ca5d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

lessons/01-setting-up/index.html

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

lessons/01-setting-up/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'
33
import App from './modules/App'
4-
import { Router, Route, hashHistory, IndexRoute } from 'react-router'
4+
import { Router, Route, browserHistory, IndexRoute } from 'react-router'
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

1313
<Route path="/" component={App}>
1414
<IndexRoute component={Home}/>

lessons/01-setting-up/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)