Use .ts for pure TypeScript files.
Use .tsx for files which contain JSX.
For example, a React component would be .tsx, but a file containing helper functions would be .ts.
Use .ts for pure TypeScript files.
Use .tsx for files which contain JSX.
For example, a React component would be .tsx, but a file containing helper functions would be .ts.