React JavaScript에서 TypeScript로 바꾸기
1. 초기 설정 - 타입스크립트 및 관련 의존성 설치yarn add -D typescript @types/node @types/react-router-dom 2.tsconfig.json 생성 및 설정 - jsconfig파일 위치에 tsconfig 생성 후 내용 추가{ "compilerOptions": { "target": "es5", "lib": ["dom", "dom.iterable", "esnext"], "allowJs": true, "skipLibCheck": true, "esModuleInterop": true, "allowSyntheticDefaultImports": true, "strict": true, ..