Babel

Learn how to use Flow with 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": ["flow"]
}