Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

next js getserversideprops

export async function getServerSideProps(context) {
  return {
    props: {}, // will be passed to the page component as props
  }
}
Source by nextjs.org #
 
PREVIOUS NEXT
Tagged: #js #getserversideprops
ADD COMMENT
Topic
Name
3+4 =