Last active
September 4, 2016 08:19
-
-
Save onionmk2/d29fa3a190b44695ed4a8c9e6431b369 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
import NavLink from './NavLink' | |
import Repo from './Repo' | |
export default React.createClass({ | |
propTypes: { | |
children: React.PropTypes.oneOfType([ | |
React.PropTypes.arrayOf(React.PropTypes.instanceOf(Repo)), | |
React.PropTypes.instanceOf(Repo) | |
]) | |
}, | |
render() { | |
return ( | |
<div> | |
<h2>Repos</h2> | |
<ul> | |
<li><NavLink to="/repos/reactjs/react-router">React Router</NavLink></li> | |
<li><NavLink to="/repos/facebook/react">React</NavLink></li> | |
</ul> | |
{this.props.children} | |
</div> | |
) | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment