Skip to Content
For Enterprise
For Government
For Higher Ed
For Individuals
For Marketing
For Enterprise
For Government
For Higher Ed
For Individuals
For Marketing
Explore Skills
Cloud Computing
Microsoft Azure
Amazon Web Services (AWS)
Google Cloud
Cloud Migration
Cloud Deployment
Cloud Platforms
Data Engineering
Data Warehouse
SQL
Apache Spark
Microsoft SQL Server
MySQL
Kafka
Data Lake
Streaming & Messaging
NoSQL Databases
Relational Databases
Data Science
Pandas
R
MATLAB
SAS
D3
Power BI
Tableau
Statistics
Exploratory Data Analysis
Data Visualization
AI & ML
Generative AI
Machine Learning
Artificial Intelligence (AI)
Deep Learning
Reinforcement Learning
Natural Language Processing
TensorFlow
Scikit-Learn
Hyperparameter Tuning
MLOps
Programming Languages
Java
JavaScript
Spring
Python
Go
C#
C++
C
Swift
Rust
Functional Programming
Software Architecture
Object-Oriented
Distributed Systems
Domain-Driven Design
Architectural Patterns
IT/Ops
Kubernetes
Docker
GitHub
Terraform
Continuous Delivery
Continuous Integration
Database Administration
Computer Networking
Operating Systems
IT Certifications
Security
Network Security
Application Security
Incident Response
Zero Trust Model
Disaster Recovery
Penetration Testing / Ethical Hacking
Governance
Malware
Security Architecture
Security Engineering
Security Certifications
Design
Web Design
Graphic Design
Interaction Design
Film & Video
User Experience (UX)
Design Process
Design Tools
Business
Agile
Project Management
Product Management
Marketing
Human Resources
Finance
Team Management
Business Strategy
Digital Transformation
Organizational Leadership
Soft Skills
Professional Communication
Emotional Intelligence
Presentation Skills
Innovation
Critical Thinking
Public Speaking
Collaboration
Personal Productivity
Confidence / Motivation
Features
All features
Verifiable skills
AI Academy
Courses
Certifications
Interactive learning
Live events
Superstreams
Answers
Insights reporting
Radar Blog
Buy Courses
Plans
Sign In
Try Now
O'Reilly Platform
book
러닝 타입스크립트
by
조시 골드버그
,
고승원
January 2023
Beginner to intermediate
372 pages
8h 47m
Korean
Hanbit Media, Inc.
Content preview from
러닝 타입스크립트
274
3
부
사용법
13.4
대체 확장자
대체 확장자
타입스크립트는 기본적으로 확장자가
.
ts
인 모든 파일을 읽을 수 있습니다. 그러나 일부 프로
젝트는
JSON
모듈 또는 리액트와 같은
UI
라이브러리를 위한
JSX
구문처럼 확장자가 다른 파
일을 읽을 수 있어야 합니다.
13.4.1
13.4.1
JSX
JSX
구문
구문
<
Comment
/>
같은
JSX
구문은 프리액트
Preact
와 리액트 같은
UI
라이브러리에서 자주 사용합
니다.
JSX
구문은 기술적으로 자바스크립트가 아닙니다. 타입스크립트의 타입 정의와 마찬가
지로 자바스크립트로 컴파일되는 자바스크립트 구문의 확장입니다.
const MyComponent = () => {
// 다음과 같음:
// return React.createElement("div", null, "Hello, world!");
return <div>Hello, world!</div>;
};
파일에서
JSX
구문을 사용하기 위해서는 다음 두 가지를 수행해야 합니다.
●
구성 옵션에서
"
jsx
"
컴파일러 옵션을 활성화합니다.
●
.
tsx
확장자로 파일의 이름을 지정합니다.
jsx
타입스크립트가
.
tsx
파일에 대한 자바스크립트 코드를 내보내는 방법은
"
jsx
"
컴파일러 옵션에
사용되는 값으로 결정됩니다. 프로젝트는 [표
13
-
1
]에 있는
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial
You might also like
이펙티브 타입스크립트
Dan Vanderkam
견고한 데이터 엔지니어링
조 라이스, 맷 하우슬리
파이썬으로 살펴보는 아키텍처 패턴
오현석, 해리 퍼시벌, 밥 그레고리
개발자를 위한 머신러닝&딥러닝
로런스 모로니
Publisher Resources
ISBN: 9791169210638