Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get static props

export async function getStaticProps() {
 
  // Data fetching
  return {
   
      // data added inside props will be
    // received by page component as `props`
    props: {},
  };
}
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #static #props
ADD COMMENT
Topic
Name
4+2 =