Create-React-App, Getting Started
create-react-app install
1
npm install -g create-react-app
Creating an App
npx create-react-app my-app
npm init react-app my-app
yarn create react-app my-app
Output
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
my-app
├── README.md
├── node_modules
├── package.json
├── .gitignore
├── public
│ ├── favicon.ico
│ ├── index.html
│ ├── logo192.png
│ ├── logo512.png
│ ├── manifest.json
│ └── robots.txt
└── src
├── App.css
├── App.js
├── App.test.js
├── index.css
├── index.js
├── logo.svg
├── serviceWorker.js
└── setupTests.js
만약 정상적인 구조로 앱이 생성되지 않는 경우 npm uninstall -g create-react-app
로 uninstall한 뒤 다시 install 해본다.
참고사이트
This post is licensed under CC BY 4.0 by the author.