Last active
April 2, 2018 10:36
-
-
Save karthiks/0288ee184fc6ea3f0a92ff636d778818 to your computer and use it in GitHub Desktop.
Edit row item in a table at button click in a modal dialog using ReactJS
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
class EditModal extends Component { | |
. | |
. | |
. | |
render() { | |
return ( | |
<input className="ToDoInput" value={this.state.task} onChange={this.handleEditingTask} /> | |
<button onClick={(e)=>this.modifyTask(e)} className="ToDoSubmit"> Edit </button> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment