pass data from one component to another in NextJS.
const [data, setData] = useState() setData(await res.json()) <Component renderdata={data} />