rekordy UDPDATE za pomocą metody PUT AXIOS HTTP
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));
}
Joyous Jay