React with Typescript in 2019

I recently change the main framework I work with from Angular to React. And to be honest I quite enjoy React and I can now understand the popularity of the framework. However there's one thing I really don't like : Flow.

So naturally when I started using React for a personal project I wanted typescript. I started looking how to use typescript with React and I ran into very complicated approaches to turn it on.

Then I stumble upon the a github issue on create-react-app and realize they had released official support for it!! It makes it dead simple !

yarn create react-app my-app --typescript

It's worth noting that since babel 7 there are ways to migrate to typescript without too much pain. I can only encourage you to read this great article about this.