Created
June 3, 2018 04:27
-
-
Save qswitcher/22747ae082b6b525a965ca2eeb65262e 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
class TodoList extends Component { | |
render() { | |
const { todos, deleteTodo } = this.props; | |
return todos.map((todo, i) => <TodoItem deleteTodo={deleteTodo} key={i} todo={todo} />); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment