skip to Main Content

React JS async component – Reactjs

I have this component import React from 'react' export const MainPage = async () => { let resp = await fetch(`http://localhost:8000/users/63fc9a335a6f38aa2dd47d15`, { method: 'get', headers: { 'x-access-token': 123 } }); let user = await resp.json(); return ( <div>MainPage </div> )…

VIEW QUESTION
Back To Top
Search