Javascript Data Is Not Rendering Console Log Using Axios Using

Javascript Data Is Not Rendering Console Log Using Axios Using On my front end i have made a component that attempts to extract these values using axios and useeffect from react , then to render them. let [posts, setposts] = usestate([]) console.log(posts) useeffect(() => { axios.get(" localhost:3200 api posts ") .then(({ data })=> { console.log('data====',data); setposts( data. ); }) .catch(err => {. I'm working on a project and i want to obtain only 1 object from get (using id). it loads correctly on console.log but not on dom, even using react.usestate () and react.useeffect ().

Javascript Data Is Not Rendering Console Log Using Axios Using

Javascript Chart Data Displays On The Console Log But Not On The Page
Github Vallempavan2002 Axios Console Data
Comments are closed.