Guest User

Untitled

a guest
Feb 21st, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. // @flow
  2.  
  3. import React from 'react';
  4.  
  5. type Props = {
  6. tasks: Array<Object>,
  7. };
  8.  
  9. type State = {
  10. isInProgress: boolean
  11. }
  12.  
  13. class TaskList extends React.Component<Props, State> {
  14. render() {
  15. return (
  16. <div className="tasks-wrapper">
  17. {this.props.tasks.map(task => (
  18. <Task />
  19. ))}
  20. </div>
  21. );
  22. }
  23. }
  24.  
  25. export default TaskList;
Add Comment
Please, Sign In to add comment