Example app with Flow
Download create-next-app
to bootstrap the example:
npx create-next-app --example with-flow with-flow-app
# or
yarn create next-app --example with-flow with-flow-app
Download the example or clone the repo:
curl https://codeload.github.com/zeit/next.js/tar.gz/canary | tar -xz --strip=2 next.js-canary/examples/with-flow
cd with-flow
Install it and run:
npm install
npm run dev
Deploy it to the cloud with now (download)
now
This example shows how you can use Flow, with the transform-flow-strip-types babel plugin stripping flow type annotations from your output code.