Created
November 25, 2019 08:25
-
-
Save Restoration/20e669c75fadcf116d53fd5fff5d82ce to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { NextPage } from 'next' | |
| import { withRouter } from 'next/router' | |
| import { WithRouterProps } from 'next/dist/client/with-router' | |
| interface Props { | |
| books: Book[] | |
| } | |
| const Index : NextPage<WithRouterProps & Props> = () => { | |
| return <div> | |
| <p>Hello World</p> | |
| </div> | |
| } | |
| index.getInitialProps = async ({req}) => { | |
| // do something | |
| } | |
| export default withRouter(Index) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment