Repos.js 369 B

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