I have a react app with mostly .js files for every component. However I would like to use typescript files for a certain group of components I am using. Does this cause issues down the road?
I have a react app with mostly .js files for every component. However I would like to use typescript files for a certain group of components I am using. Does this cause issues down the road?
TypeScript works well mixed with JavaScript, it shouldn't be a problem to introduce TypeScript while keeping your existing codebase.
I would say it's a good idea to keep your working JavaScript app, and just add new TypeScript components. So you don't have to rewrite your already working JS code.
Later on, when you have time, you can always go back and rewrite your JS to TS.
The only problems I've faced doing this is, when you import JavaScript in your TypeScript, the imported types will often be of type any, which removes the type-safety benefits.