I just start working on a React project with TypeScript and ask myself what should I do with regular class files? Should I use .ts or .tsx files and then I couldn’t find any reason to do not using .tsx file all the times even when it’s not a React project!

Is there any reason or specific situation that we shouldn’t use .tsx files? if no, why TypeScript team add whole new extension?

5 Answers
5

Leave a Reply

Your email address will not be published. Required fields are marked *