update(e) {
e.preventDefault();
const employee = {
name: this.state.name,
age: this.state.age,
salary: this.state.salary,
}
axios.put('http://dummy.restapiexample.com/api/v1/update/{this.state.id}', employee)
.then(res => console.log(res.data));
}