type Props = {
      }
      function NextPage(props:Props) {
        
      }
      // This gets called on every request
      export async function getServerSideProps() {
        return { props: {  } }
      }
      export default NextPage;
      Typescript language logo
      your recipe card header background

      Next page with getServerSideProps

      next
      getServerSideProps
      page
      ...
      Next TypeScript recipes

      If you export a function called getServerSideProps (Server-Side Rendering) from a page, Next.js will pre-render this page on each request using the data returned by getServerSideProps.

      Library: next

      Shortcut: next.page.server.props.create

      Filename pattern: pages/**/*.tsx

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.