Create React App already supports Flow by default. All you need to do is install Flow and create a .flowconfig
file by running flow init
.
create-react-app my-app && cd my-app yarn add --dev flow-bin yarn run flow init
Flow will be run as part of create-react-app’s scripts.
© 2013–present Facebook Inc.
Licensed under the BSD License.
https://flow.org/en/docs/tools/create-react-app