Flow type checker with React: Adding Flow to a Project

Adding Flow to a Project

  • To install the latest version of Flow into your project run the following command in the terminal from your project directory: 'yarn add --dev flow-bin' for yarn or 'npm install --save-dev flow-bin' for npm.
  • Add flow to the "scripts" section of your package.json to be able to use this from the terminal: { "scripts": { "flow": "flow", }, }.
  • To create a Flow configuration file that you will need to commit run following command: 'yarn run flow init' for yarn or 'npm run flow init' for npm.

Related concepts

Flow type checker with React: Adding Flow to a Project — Structure map

Clickable & Draggable!

Flow type checker with React: Adding Flow to a Project — Related pages: