Created
February 17, 2018 13:47
-
-
Save fdjones/e23fe53679a98ce78d6879d3fc9a034b 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
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