Skip to content

Instantly share code, notes, and snippets.

@emilyruby
Last active January 2, 2018 14:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emilyruby/b5773729b2b529ddf23e96df52e672d0 to your computer and use it in GitHub Desktop.
Save emilyruby/b5773729b2b529ddf23e96df52e672d0 to your computer and use it in GitHub Desktop.
class List extends React.Component {
render() {
return (
<ul>
<ListItem />
</ul>
);
}
}
class ListItem extends React.Component {
render() {
return (
<div>
<li>Hello</li>
<li>World</li>
</div>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment