Repos.js 393 B

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