Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- useForm
- next.js
- html
- mini
- ToyProject
- React
- project
- react bits
- ios26
- xcode26
- 구조화된 데이터
- Threppa
- 다중map
- react-hook-form
- 문제
- css
- Tanstack Query
- 이중map
- wescanner
- 일본 우편번호 api
- KBW
- 팀프로젝트
- React-native
- teamproject
- javascript
- miniproject
- JS
- api 35
- echarts
Archives
- Today
- Total
블로그 이름을 입력해주세요
기존의 React에서 Typescript 적용하기 본문
package.json 라이브러리 추가
yarn add typescript @types/node @types/react @types/react-dom @types/jest --dev
Typescript 설정 (tsconfig.json)
tsc --init
스크립트 수정
.js 파일을 .tsx파일로 수정한다
App.js => App.tsx
'Typescript' 카테고리의 다른 글
| Typescript 기본타입(문법) (0) | 2022.10.05 |
|---|