Skip to content

Instantly share code, notes, and snippets.

@fdjones
Created February 8, 2018 16:27
Show Gist options
  • Save fdjones/f40b0b0250edbabded0b35f538900fe4 to your computer and use it in GitHub Desktop.
Save fdjones/f40b0b0250edbabded0b35f538900fe4 to your computer and use it in GitHub Desktop.
// @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