Skip to content

Commit a484780

Browse files
committed
Fix broken examples
1 parent 3d8a883 commit a484780

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

examples/async-data/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ var Contact = React.createClass({
9393
var { contact } = this.props.data;
9494
return (
9595
<div>
96-
<p><Link to="contacts">Back</Link></p>
96+
<p><Link to="/">Back</Link></p>
9797
<h1>{contact.first} {contact.last}</h1>
9898
<img key={contact.avatar} src={contact.avatar}/>
9999
</div>
@@ -112,7 +112,7 @@ var Index = React.createClass({
112112
});
113113

114114
var routes = (
115-
<Route name="contacts" path="/" handler={App}>
115+
<Route handler={App}>
116116
<DefaultRoute name="index" handler={Index}/>
117117
<Route name="contact" path="contact/:id" handler={Contact}/>
118118
</Route>

examples/dynamic-segments/app.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ var User = React.createClass({
2525
<div className="User">
2626
<h1>User id: {userId}</h1>
2727
<ul>
28-
<li><Link to="task" params={{userId: userId, taskId: "foo"}}>foo task</Link></li>
29-
<li><Link to="task" params={{userId: userId, taskId: "bar"}}>bar task</Link></li>
28+
<li><Link to="user.task" params={{userId: userId, taskId: "foo"}}>foo task</Link></li>
29+
<li><Link to="user.task" params={{userId: userId, taskId: "bar"}}>bar task</Link></li>
3030
</ul>
3131
<RouteHandler/>
3232
</div>
@@ -53,7 +53,7 @@ var routes = (
5353
<Route path="/" handler={App}>
5454
<Route name="user" path="/user/:userId" handler={User}>
5555
<Route name="task" path="tasks/:taskId" handler={Task}/>
56-
<Redirect from="todos/:taskId" to="task"/>
56+
<Redirect from="todos/:taskId" to="user.task"/>
5757
</Route>
5858
</Route>
5959
);

examples/partial-app-loading/dashboard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var Dashboard = React.createClass({
99
<div>
1010
<h1>Dashboard!</h1>
1111
<ul>
12-
<li><Link to="inbox">Inbox</Link></li>
12+
<li><Link to="dashboard.inbox">Inbox</Link></li>
1313
</ul>
1414
<RouteHandler/>
1515
</div>

0 commit comments

Comments
 (0)