issue : Next js throwing error during data fetching
in codes,
export const getStaticProps = async () => {
const res = await fetch('https://jsonplaceholder.typicode.com/users')
const data = res.json()
return {
// data fetching in Next js will be done in behind the scene
// and it will reflected to before component mounts.
ninjas : data,
}
}
issue : Next js throwing error during data fetching
in codes,
in terminal,