W3cubDocs

/Flow

Babel

Flow and Babel are designed to work great together. It takes just a few steps to set them up together.

If you don’t have Babel setup already, you can do that by following this guide.

Once you have Babel setup, install @babel/preset-flow with either Yarn or npm.

yarn add --dev @babel/preset-flow
# or
npm install --save-dev @babel/preset-flow

Then add flow to your Babel presets config.

{
  "presets": ["@babel/preset-flow"]
}

© 2013–present Facebook Inc.
Licensed under the MIT License.
https://flow.org/en/docs/tools/babel