# typescript로 된 react app 만들기 $ npx create-react-app my-app --template typescript # typescript 용 react dom 설치 $ npm i --save react react-dom typescript # typescript node 설치 $ npm i --save-dev @types/react @types/react-dom @types/node # typescript tsconfig.json 설정 { "compilerOptions" : { "target" : "es6" , "lib" : [ "dom" , "dom.iterable" , "esnext" ], "baseUrl" : "./src" , "allowJs" : true , "skipLibCheck" : true , "esModuleInterop" : true , "allowSyntheticDefaultImports" : true , "strict" : true , "forceConsistentCasingInFileNames" : true , "noFallthroughCasesInSwitch" : true , "module" : "esnext" , "moduleResolution" : "node" , "resolveJsonModule" : true , "isolatedModules" : true , &q