Created
March 16, 2019 02:37
-
-
Save catmando/9dfaf358010151efc919bd17e9795a13 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'; | |
import './ToDoItem.css'; | |
class ToDoItem extends Component { | |
render() { | |
return ( | |
<div className="ToDoItem"> | |
<p className="ToDoItem-Text">{this.props.item}</p> | |
<button className="ToDoItem-Delete" | |
onClick={this.props.deleteItem}>- | |
</button> | |
</div> | |
); | |
} | |
} | |
export default ToDoItem; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment