|
@@ -1,8 +1,17 @@
|
|
import React from 'react'
|
|
import React from 'react'
|
|
|
|
+import { Link } from 'react-router'
|
|
|
|
|
|
export default React.createClass({
|
|
export default React.createClass({
|
|
render() {
|
|
render() {
|
|
- return <div>Hello, React Router!</div>
|
|
|
|
|
|
+ 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>
|
|
|
|
+ </div>
|
|
|
|
+ )
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
|