Convert React project to TypeScript in 5 mins

preview_player
Показать описание
React apps are usually written using JavaScript. However, JS does not provide type safety and leads to more issues and bugs, requiring rigorous testing.

Learn how to upgrade a React project to TypeScript in flat 5 mins
Рекомендации по теме
Комментарии
Автор

I've changed 6 files so far and I've had to make an extended type definition for React.HTMLDivElement to include 'key' and 'theme'.

BusinessWolf
Автор

Seems useful, but when I do this to my portfolio it'll probably take hours to get rid of the errors and put in type safety. Nonetheless, it will be useful experience for when I start my next project with it, plus I can put Ts on my resume after that which will help. Thank you.

BusinessWolf