Last active
July 7, 2019 11:57
-
-
Save JeromeFranco/ff35de73c546999c494683cf654b0d8f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
const TodoList = ({ todos, onDelete, canDelete }) => { | |
return ( | |
<div> | |
<Title value="Todo List" /> | |
<div> | |
{todos.map(todo => ( | |
<TodoItem | |
key={todo.id} | |
todo={todo} | |
onDelete={onDelete} | |
canDelete={canDelete} | |
/> | |
))} | |
</div> | |
</div> | |
); | |
}; | |
TodoList.propTypes = { | |
todos: PropTypes.array, | |
onDelete: PropTypes.func, | |
canDelete: PropTypes.bool, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment