Skip to content

Instantly share code, notes, and snippets.

@karthiks
Last active April 2, 2018 10:36
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 karthiks/0288ee184fc6ea3f0a92ff636d778818 to your computer and use it in GitHub Desktop.
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
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