install flow on gatsby code example
Example: how to install flow on gatsbyjs
yarn add gatsby-plugin-flow
Open gatsby-config.js file and Insert the following code
modules.exports = {
plugins: [
// your other plugins
`gatsby-config.js`, // highlight-line
// your other plugins
],
}
yarn add -D flow-bin
You can initialize Flow by running the command
npx flow init
Check your code
npx flow