How to Install Flow in Gatsby

A quick guide for installing Flow in Gatsby

1. Install Gatsby Plugin for Flow

Add gatsby-plugin-flow to your project by running the command:

yarn add gatsby-plugin-flow

And add it to gatsby-config.js

modules.exports = {
	plugins: [
		// your other plugins
		`gatsby-config.js`,		// your other plugins

2. Install Flow Bin

Now, run the following command to install flow-bin

yarn add -D flow-bin

3. Initialize Flow

You can initialize Flow by running the command

npx flow init

4. Check Your Code

You can now run npx flow and it will run Flow and check your code. You can also install Flow's extension for VS Code.