Skip to content

Instantly share code, notes, and snippets.

@GermanHoyos
Created January 2, 2018 00:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GermanHoyos/df36e8d915c7091caf106beecd4f2afc to your computer and use it in GitHub Desktop.
Save GermanHoyos/df36e8d915c7091caf106beecd4f2afc to your computer and use it in GitHub Desktop.
import React, { Component } from 'react';
class ToDo extends Component {
render() {
return (
<li>
<input type="checkbox" checked={ this.props.isCompleted } onChange={ this.props.toggleComplete }/>
<span>{ this.props.description }</span>
<button onClick={this.deleteToDo}> Delete this ToDo</button>
</li>
);
}
}
export default ToDo;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment