Last active
March 13, 2018 18:52
-
-
Save fakiolinho/4344d5bf02763c34683fb42e79951e40 to your computer and use it in GitHub Desktop.
This file contains 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'; | |
export default class Options extends Component { | |
handleAdd = () => { | |
console.log('add'); | |
}; | |
handleEdit = () => { | |
console.log('edit'); | |
}; | |
handleDelete = () => { | |
console.log('delete'); | |
}; | |
render() { | |
return ( | |
<ul> | |
<li> | |
<button onClick={this.handleAdd} data-test="add">Add</button> | |
</li> | |
<li> | |
<button onClick={this.handleEdit} data-test="edit">Edit</button> | |
</li> | |
<li> | |
<button onClick={this.handleDelete} data-test="delete">Delete</button> | |
</li> | |
</ul> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment