Is there any downside to using . tsx instead of . ts all the times in . . . The use of tsx extension implies that a module is related to React and uses JSX syntax In case it doesn't, the extension may give false impression about module contents and the role in the project, this is the argument against using tsx extension by default
javascript - How do I convert TSX to JSX - Stack Overflow You'll need to complete a few actions and gain 15 reputation points before being able to upvote Upvoting indicates when questions and answers are useful What's reputation and how do I get it? Instead, you can save this post to reference later
How are Component. spec. tsx files used in React - Stack Overflow These files are used to test type definitions They are not a part of the production bundle but are compiled with TypeScript, showing potential problems with types Calling them * spec tsx is just a convention