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

Use HTML navigation element #270

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions lessons/03-navigating-with-link/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ export default React.createClass({
return (
<div>
<h1>React Router Tutorial</h1>
<ul role="nav">
<li><Link to="/about">About</Link></li>
<li><Link to="/repos">Repos</Link></li>
</ul>
<nav>
<ul>
<li><Link to="/about">About</Link></li>
<li><Link to="/repos">Repos</Link></li>
</ul>
</nav>
</div>
)
}
Expand Down
11 changes: 6 additions & 5 deletions lessons/04-nested-routes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,12 @@ Next, render children inside of `App`.
return (
<div>
<h1>React Router Tutorial</h1>
<ul role="nav">
<li><Link to="/about">About</Link></li>
<li><Link to="/repos">Repos</Link></li>
</ul>

<nav>
<ul>
<li><Link to="/about">About</Link></li>
<li><Link to="/repos">Repos</Link></li>
</ul>
</nav>
{/* add this */}
{this.props.children}

Expand Down
10 changes: 6 additions & 4 deletions lessons/04-nested-routes/modules/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ export default React.createClass({
return (
<div>
<h1>React Router Tutorial</h1>
<ul role="nav">
<li><Link to="/about">About</Link></li>
<li><Link to="/repos">Repos</Link></li>
</ul>
<nav>
<ul>
<li><Link to="/about">About</Link></li>
<li><Link to="/repos">Repos</Link></li>
</ul>
</nav>
</div>
)
}
Expand Down
10 changes: 6 additions & 4 deletions lessons/05-active-links/modules/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ export default React.createClass({
return (
<div>
<h1>React Router Tutorial</h1>
<ul role="nav">
<li><Link to="/about">About</Link></li>
<li><Link to="/repos">Repos</Link></li>
</ul>
<nav>
<ul>
<li><Link to="/about">About</Link></li>
<li><Link to="/repos">Repos</Link></li>
</ul>
</nav>
{this.props.children}
</div>
)
Expand Down
10 changes: 6 additions & 4 deletions lessons/06-params/modules/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ export default React.createClass({
return (
<div>
<h1>React Router Tutorial</h1>
<ul role="nav">
<li><NavLink to="/about">About</NavLink></li>
<li><NavLink to="/repos">Repos</NavLink></li>
</ul>
<nav>
<ul>
<li><NavLink to="/about">About</NavLink></li>
<li><NavLink to="/repos">Repos</NavLink></li>
</ul>
</nav>
{this.props.children}
</div>
)
Expand Down
10 changes: 6 additions & 4 deletions lessons/07-more-nesting/modules/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ export default React.createClass({
return (
<div>
<h1>React Router Tutorial</h1>
<ul role="nav">
<li><NavLink to="/about">About</NavLink></li>
<li><NavLink to="/repos">Repos</NavLink></li>
</ul>
<nav>
<ul>
<li><NavLink to="/about">About</NavLink></li>
<li><NavLink to="/repos">Repos</NavLink></li>
</ul>
</nav>
{this.props.children}
</div>
)
Expand Down
10 changes: 6 additions & 4 deletions lessons/08-index-routes/modules/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ export default React.createClass({
return (
<div>
<h1>React Router Tutorial</h1>
<ul role="nav">
<li><NavLink to="/about">About</NavLink></li>
<li><NavLink to="/repos">Repos</NavLink></li>
</ul>
<nav>
<ul>
<li><NavLink to="/about">About</NavLink></li>
<li><NavLink to="/repos">Repos</NavLink></li>
</ul>
</nav>
{this.props.children}
</div>
)
Expand Down
10 changes: 6 additions & 4 deletions lessons/09-index-links/modules/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ export default React.createClass({
return (
<div>
<h1>React Router Tutorial</h1>
<ul role="nav">
<li><NavLink to="/about">About</NavLink></li>
<li><NavLink to="/repos">Repos</NavLink></li>
</ul>
<nav>
<ul>
<li><NavLink to="/about">About</NavLink></li>
<li><NavLink to="/repos">Repos</NavLink></li>
</ul>
</nav>
{this.props.children}
</div>
)
Expand Down
12 changes: 7 additions & 5 deletions lessons/10-clean-urls/modules/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ export default React.createClass({
return (
<div>
<h1>React Router Tutorial</h1>
<ul role="nav">
<li><NavLink to="/" onlyActiveOnIndex>Home</NavLink></li>
<li><NavLink to="/about">About</NavLink></li>
<li><NavLink to="/repos">Repos</NavLink></li>
</ul>
<nav>
<ul>
<li><NavLink to="/" onlyActiveOnIndex>Home</NavLink></li>
<li><NavLink to="/about">About</NavLink></li>
<li><NavLink to="/repos">Repos</NavLink></li>
</ul>
</nav>
{this.props.children}
</div>
)
Expand Down
12 changes: 7 additions & 5 deletions lessons/11-productionish-server/modules/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ export default React.createClass({
return (
<div>
<h1>React Router Tutorial</h1>
<ul role="nav">
<li><NavLink to="/" onlyActiveOnIndex>Home</NavLink></li>
<li><NavLink to="/about">About</NavLink></li>
<li><NavLink to="/repos">Repos</NavLink></li>
</ul>
<nav>
<ul>
<li><NavLink to="/" onlyActiveOnIndex>Home</NavLink></li>
<li><NavLink to="/about">About</NavLink></li>
<li><NavLink to="/repos">Repos</NavLink></li>
</ul>
</nav>
{this.props.children}
</div>
)
Expand Down
12 changes: 7 additions & 5 deletions lessons/12-navigating/modules/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ export default React.createClass({
return (
<div>
<h1>React Router Tutorial</h1>
<ul role="nav">
<li><NavLink to="/" onlyActiveOnIndex>Home</NavLink></li>
<li><NavLink to="/about">About</NavLink></li>
<li><NavLink to="/repos">Repos</NavLink></li>
</ul>
<nav>
<ul>
<li><NavLink to="/" onlyActiveOnIndex>Home</NavLink></li>
<li><NavLink to="/about">About</NavLink></li>
<li><NavLink to="/repos">Repos</NavLink></li>
</ul>
</nav>
{this.props.children}
</div>
)
Expand Down
12 changes: 7 additions & 5 deletions lessons/13-server-rendering/modules/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ export default React.createClass({
return (
<div>
<h1>React Router Tutorial</h1>
<ul role="nav">
<li><NavLink to="/" onlyActiveOnIndex>Home</NavLink></li>
<li><NavLink to="/about">About</NavLink></li>
<li><NavLink to="/repos">Repos</NavLink></li>
</ul>
<nav>
<ul>
<li><NavLink to="/" onlyActiveOnIndex>Home</NavLink></li>
<li><NavLink to="/about">About</NavLink></li>
<li><NavLink to="/repos">Repos</NavLink></li>
</ul>
</nav>
{this.props.children}
</div>
)
Expand Down
12 changes: 7 additions & 5 deletions lessons/14-whats-next/modules/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ export default React.createClass({
return (
<div>
<h1>React Router Tutorial</h1>
<ul role="nav">
<li><NavLink to="/" onlyActiveOnIndex>Home</NavLink></li>
<li><NavLink to="/about">About</NavLink></li>
<li><NavLink to="/repos">Repos</NavLink></li>
</ul>
<nav>
<ul>
<li><NavLink to="/" onlyActiveOnIndex>Home</NavLink></li>
<li><NavLink to="/about">About</NavLink></li>
<li><NavLink to="/repos">Repos</NavLink></li>
</ul>
</nav>
{this.props.children}
</div>
)
Expand Down