|
|
|
|
|
by OmarIsmail
3896 days ago
|
|
Once you go typed JS you don't go back. We had a large existing pure JS codebase, so Facebook's Flow was a better fit for us. We still have some portions of our code that don't have type annotations, and invariably that's where the majority of new bugs are introduced. Now we have a policy of making sure all the files we touch are typed, and adding types to a file if it doesn't already have it. Types + React is a whole new ballgame when it comes to front end dev. |
|
You can benefit immoderately from compiling your existing codebase in TS; you'll probably discover some bugs, even before adding any annotations.