Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.