Probuje zrobic to tak, ale wyskakuje mi jakiś błąd DOMException: An attempt was made to use an object that is not, or is no longer, usable
axios.post("http://localhost:8080/api/users",payload)
.then((response)=> {
console.log(response);
this.setState({users:response.data});
},(error) => {console.log(error)}
);