axios GET request returns undefined and not able to set value – Reactjs
I am trying to set data received from a GET request from an API using axios. But the value which is getting set is undefined even though console.log gives me the correct output. const[movie, setMovie] = useState({}); useEffect(()=>{ const baseURL…