์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
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 |
- MySQL
- RESTful API
- ์๋ฐ
- ํ์ด์ฌ๊ณต๋ถ
- Flutter
- ์๋ฐ๊ณต๋ถ
- Pandas
- ์๋๋ก์ด๋ ์ฑ ๊ฐ๋ฐ
- ํ๋ค์ค๊ณต๋ถ
- Streamlit๊ธฐ๋ณธ
- ์๋ฐ์ด๋ณด
- ์๋ฐํ๋ก๊ทธ๋๋ฐ
- ์คํธ๋ฆผ๋ฆฟ ๊ธฐ๋ณธ
- ์๋ฐ์คํฌ๋ฆฝํธ
- Streamlit๊ธฐ์ด
- java
- ์น๋์๋ณด๋ ๊ธฐ์ด
- ์คํธ๋ฆผ๋ฆฟ
- ํ์ด์ฌ
- ๋ฐ์ดํฐ๋ฒ ์ด์ค
- ์๋๋ก์ด๋ ์คํ๋์ค
- streamlit
- db
- ์๋ฐ๊ธฐ์ด
- Android
- ํ๋ค์ค
- serverless
- JavaScript
- ์น๋์๋ณด๋ ์ ์
- ์๋ฐ์คํฌ๋ฆฝํธ ๊ณต๋ถ
- Today
- Total
ruriruriya
[React] ๋ฆฌ์กํธ - ํ๊ฒฝ์ค์ (create-react-app) ๋ณธ๋ฌธ
React ์ ๊ธฐ๋ณธ ํ๊ฒฝ์ค์ ์ ํด๋ณด์.
1. node.js ์ค์น
node.js ์ฌ์ดํธ์์ ๋ค์ด๋ก๋ LTS ๋๋ ํ์ฌ๋ฒ์ ํฌ๊ฒ ์๊ด์ ์๋ค.
https://nodejs.org/en/download
Node.js — Download Node.js®
Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine.
nodejs.org
node.js ์ฌ์ดํธ์ node.js ์ฌ์ดํธ์์ ๋ค์ด๋ก๋ LTS ๋๋ ํ์ฌ๋ฒ์ ํฌ๊ฒ ์๊ด ์์. ์ ๋ค์ด๋ก๋ LTS ๋๋ ํ์ฌ๋ฒ์ ํฌ๊ฒ ์๊ด ์์.
2. VS code
vscode๊ฐ ์ค์น๋์ด ์์ง ์๋ค๋ฉด ์ค์นํด์ผ ํ๋ค.https://code.visualstudio.com/Download
Download Visual Studio Code - Mac, Linux, Windows
Visual Studio Code is free and available on your favorite platform - Linux, macOS, and Windows. Download Visual Studio Code to experience a redefined code editor, optimized for building and debugging modern web and cloud applications.
code.visualstudio.com
2-1. ํ๋ก์ ํธ ํด๋ ์์ฑ
2-2. React ์ ํ๋ฆฌ์ผ์ด์ ์ ์์ฑํ๋ ๋ช ๋ น
.์ ํ์ฌ ๋๋ ํ ๋ฆฌ ์๋ฏธํจ.
npx create-react-app .
์ธํ ์ด ์๋ฃ ๋๋ฉด ํ๋ก์ ํธ ํด๋ ๋ด์ ์์ ํ ์ ์๋ ํ๊ฒฝ์ด ๋ง๋ค์ด์ง๋ค.
์๋ฃ๋๋ฉด ํฐ๋ฏธ๋์ ๋ช ๋ น์ด ๋ฑ ์ค๋ช ์ด ๋์จ๋ค.
2-3. ํ ์คํธ ์คํํ๊ธฐ
๋ฆฌ์กํธ ๊ฐ๋ฐํ๊ฒฝ์ด ์คํ๋๋ฉฐ ์ฝ๋ฉ์ ํ ์ ์๋ ํ๊ฒฝ์ด ๋์ํ๊ธฐ ์์ํ๋ค.
npm start
์์ ํฌํธ๋ฒํธ 3000๋ฒ์ธ localhost ์ํํ์ด์ง๊ฐ ์๋์ผ๋ก ๋ธ๋ผ์ฐ์ ์์ ์ด๋ฆฐ๋ค.
'๐๏ธWeb > React' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[React] ๋ฆฌ์กํธ - ํจ์ ์ปดํฌ๋ํธ ์ ์์ ์ฌ์ฉ (0) | 2024.04.27 |
---|---|
[React] ๋ฆฌ์กํธ - ๋น๋ ๋ฐ ๋ฐฐํฌ (0) | 2024.04.27 |
[React] ๋ฆฌ์กํธ - React๊ธฐ๋ณธ ๊ตฌ์กฐ ๋ฐ ํ์ผ ์ญํ (0) | 2024.04.27 |
[React] ๋ฆฌ์กํธ - useState (0) | 2024.04.25 |
[React] ๋ฆฌ์กํธ - JSX๋? (0) | 2024.04.23 |