When we code with a typescript, we can see 2 extensions of it.
CASE .tsx
In this case, it means for files that contain JSX
TSX file is a TypeScript(.ts) file witten using JSX syntax.
It contains code that is most likely part of a single-page or mobile application
We usually open this in source code editors like VSCode
CASE .ts
In this case, it means for pure TypeScript files
.ts files have differences with .js
If you want to know about it,
Click Here to find out.
[배경지식] JavaScript? TypeScript? 이 둘의 차이는 무엇일까?
공통 객체 지향 프로그래밍 패러다임 = 데이터 추상화에 중심 - 객체와 클래스라는 두 주요 개념을 기반으로 한다 객체 기반의 스크립트 언어이다 웹의 동작을 구현하는 데에 쓰이는 언어이다
time-map-installer.tistory.com
End
References
What is the difference between .ts and .tsx extensions. Both are used as extensions for typescript files in react. So where shou
I am new to react and I am working on a project. I come across both .ts and .tsx extensions. I don't understand where should I use .ts and .tsx. Any help on this is much appreciated. Thank you!
stackoverflow.com
https://www.typescriptlang.org/docs/handbook/jsx.html
Documentation - JSX
Using JSX with TypeScript
www.typescriptlang.org
TSX File Extension - What is a .tsx file and how do I open it?
Verified by FileInfo.com The FileInfo.com team has independently researched the React TypeScript file format and Mac, Windows, and Linux apps listed on this page. Our goal is 100% accuracy and we only publish information about file types that we have verif
fileinfo.com
'Development Study > Frontend' 카테고리의 다른 글
[TypeScript] TypeScript Grammar - 02 (0) | 2023.01.07 |
---|---|
[TypeScript] TypeScript Grammar - 01 (0) | 2023.01.07 |
[배경지식] CSS 프레임워크를 알아보자 (1) | 2022.12.31 |
[배경지식] JavaScript? TypeScript? 이 둘의 차이는 무엇일까? (0) | 2022.12.31 |
HTML + CSS 파일 연동하는 방법 (0) | 2022.11.21 |