I am getting an error that says "TypeError: this.state.users.map is not a function" however there is a list variable in my state which is binded so I am not sure why the map function is not working.
getList(){
console.log("FUNCTION CALLED");
axios.get("/api/mentorRequests")
.then((result) => {
console.log("Logging results", result);
this.setState({users: result});
})
}
render() {
console.log("USERS", this.state.users);
return (
<div className="">
{this.state.users.map((user) =>
<div>
{user.displayName}
</div>
)}
</div>
);
}