How to change a particular row that is clicked in JSX table to change to input editable row without using any libraries such as react-table?
<table className="table-data">
<tbody>
<tr>
<th>Name</th>
<th>Age</th>
<th>Class</th>
<th>Section</th>
</tr> {this.state.students.map((item,key) => {return
<Fragment key={key}>
<tr key={key} onClick={()=>
{this.setState({clientIsEditing:true},this.edit(key,item))}}>
<td>{item[1]}</td>
<td>{item[2]}</td>
<td>{item[3]}</td>
<td>{item[4]}</td>
</tr>
</Fragment>
<tbody>
</table>})}
the above is the code to display table. this.state.students has the student details from db. I want the particular table row to be changed to a row of input fields on click. Kindly help. I'm new to the world of react.