I’ll just get right into it!
- Less Code
- Arguably shorter compile time
- Reacts standard documentation is JS oriented
- Higher Chance of Production Bugs
- Not as simple to read/Messy
- Creating Standards for developers can be more challenging
- No Intellisense
React with TypeScript
This is a relatively new way of building React apps but is gaining ground. TypeScript in general is becoming more and more popular for front-end web development mostly due to its readability and type checking.
- Type checking
- Cleaner code
- Arguably less bugs
- Less unit tests
- Simpler documentation
- Longer compile time
- More code
- Type checking can be annoying hard to manage
- Less libraries with type support (Has been getting better with time)
I think the benefits outweigh the risks, TypeScript has a massive following and seems to be the way the world of front-end development is going. With TypeScript it is easier to catch bugs that could have caused production errors reported by users which is the last thing we as developers want. The code is cleaner and will be easier to scale or change as the project does. I also think newer developers (or new to the team) can adjust to it easily because they will need to follow TypeScripts strict typing laid out by the more seasoned developers.
Well that’s my opinion on the topic and I hope that this blog was helpful in some way. Thanks for reading!
Below are a few of the articles I used to research the topic
I couldn’t find a ton of reading on this exactly, most of the views I found against it were from stack overflow and/or reddit threads. Here is one article I found against TypeScript.