Created
February 8, 2018 16:27
-
-
Save fdjones/f40b0b0250edbabded0b35f538900fe4 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
// @flow | |
import React from 'react'; | |
type Props = { | |
tasks: Array<Object>, | |
}; | |
type State = { | |
isInProgress: boolean | |
} | |
class TaskList extends React.Component<Props, State> { | |
render() { | |
return ( | |
<div className="tasks-wrapper"> | |
{this.props.tasks.map(task => ( | |
<Task /> | |
))} | |
</div> | |
); | |
} | |
} | |
export default TaskList; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment