Skip to content

Instantly share code, notes, and snippets.

@jevakallio
Forked from kimmobrunfeldt/react-render.js
Last active September 23, 2015 16:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jevakallio/384d4c7ce62b402332c0 to your computer and use it in GitHub Desktop.
Save jevakallio/384d4c7ce62b402332c0 to your computer and use it in GitHub Desktop.
import React from 'react';
const Item = React.createClass({
render() {
return <li>{this.props.value}</li>;
}
});
const List = React.createClass({
render() {
return <ul>
{ this.props.items.map(item => <Item value={item.value} />) }
<ul>;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment