Files: f916601c30ec4fbb7044e850bd0e2746d0b0c9d2 / app / todos / components / todo-list.js
306 bytesRaw
1 | import React from 'react' |
2 | |
3 | import style from './todo.css' |
4 | |
5 | export default class TodoList extends React.Component { |
6 | render () { |
7 | return <ul> |
8 | { |
9 | React.Children.map(this.props.children, (todo, todoKey) => { |
10 | return <li key={todoKey}>{ todo }</li> |
11 | }) |
12 | } |
13 | </ul> |
14 | } |
15 | } |
16 |
Built with git-ssb-web