-
TypeScript 기반 React 시작하기 with Styled-ComponentsReact/React+TypeScript 2023. 2. 23. 17:21
1. npx create-react-app [앱이름] --template typescript
2. npm i --save-dev @types/styled-components
3. npm i styled-components4. src/ 다음 3개의 파일만 남기고 모두 지워도 된다.
5. 파일 삭제로 인한 import코드를 제거해주면 끝!
'React > React+TypeScript' 카테고리의 다른 글
리액트 타입스크립트 스타일컴포넌트 Theme 적용하기 (0) 2023.02.22 React+TypeScript Form 형식을 공부해보자! (0) 2023.02.22 ? / ?? 리액트 타입스크립트 props 전달할때 optional Chaining & null Check (0) 2023.02.21 React + TypeScript 에서 props 전달하는 법 with styled-components (0) 2023.02.21 타입스크립트로 리액트 시작하기 + 기본 문법 (2) 2023.02.18