Use .ts for regular TypeScript files that contain only logic and types.
.ts
Use .tsx when your file includes JSX or any HTML like syntax magic, commonly used in React components.
.tsx