Answers for "getinitialprops on phone not working"

0

getinitialprops on phone not working

//Try not use axios if you're using it.
//if not try use exactly this syntax
export async function getStaticProps() {
  const res = await fetch(`http://localhost:3000/api/blogs`)
  const Blogs = await res.json()
  return {
    props: {
      Blogs,
    },
  }
}
Posted by: Guest on September-21-2021

Code answers related to "getinitialprops on phone not working"

Code answers related to "Javascript"

Browse Popular Code Answers by Language