App.js 369 B

1234567891011121314151617
  1. import React from 'react'
  2. import { Link } from 'react-router'
  3. export default React.createClass({
  4. render() {
  5. return (
  6. <div>
  7. <h1>React Router Tutorial</h1>
  8. <ul role="nav">
  9. <li><Link to="/about">About</Link></li>
  10. <li><Link to="/repos">Repos</Link></li>
  11. </ul>
  12. {this.props.children}
  13. </div>
  14. )
  15. }
  16. })