Skip to content

Instantly share code, notes, and snippets.

@fdjones
Created February 17, 2018 13:47
Show Gist options
  • Save fdjones/e23fe53679a98ce78d6879d3fc9a034b to your computer and use it in GitHub Desktop.
Save fdjones/e23fe53679a98ce78d6879d3fc9a034b to your computer and use it in GitHub Desktop.
import React, { Component } from 'react';
// type tTask = {
// title: string,
// details: string,
// }
class Task extends Component {
constructor(props) {
super(props);
}
render() {
const { title, details } = this.props.taskData;
return (
<div
>
<h2>{title}</h2>
<h3
className="status"
>
{this.state.isInProgress ? 'In Progress' : 'Done'}
</h3>
<h4>{details}</h4>
</div>
);
}
}
export default Task;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment