Skip to content

๐Ÿ“– React์— ๋Œ€ํ•ด ํ•™์Šตํ•œ ๋‚ด์šฉ์„ ์ •๋ฆฌํ•œ ๋ ˆํฌ์ง€ํ† ๋ฆฌ์ž…๋‹ˆ๋‹ค.

Notifications You must be signed in to change notification settings

shpark0913/React

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

46 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

์‹œ์ž‘ํ•˜๊ธฐ

  1. Node.js ์„ค์น˜ํ•˜๊ธฐ (npx ์‚ฌ์šฉํ•˜๊ธฐ ์œ„ํ•ด)
  2. npx create-react-app {ํด๋” ์ด๋ฆ„}
    1. ํด๋” ์ด๋ฆ„์— . ์„ ์ž…๋ ฅ โ‡’ ํ˜„์žฌ ๋””๋ ‰ํ† ๋ฆฌ

์„ค์น˜

  • npm start
    • Starts the development server.
    • ๋ฆฌ์•กํŠธ ๊ฐœ๋ฐœํ™˜๊ฒฝ์ด ์‹คํ–‰๋˜๋ฉฐ ์ฝ”๋”ฉ์„ ํ•  ์ˆ˜ ์žˆ๋Š” ํ™˜๊ฒฝ์ด ๋™์ž‘ํ•จ.
    • 3000๋ฒˆ ํฌํŠธ์— ๋ฆฌ์•กํŠธ๊ฐ€ ์‹คํ–‰๋จ
  • npm run build
    • Bundles the app into static files for production.
    • build
      • ๋ฐฐํฌํŒ์„ ๋งŒ๋“œ๋Š” ๊ณผ์ •
    • npx serve -s build
      • buildํ•œ ๊ฒฐ๊ณผ๋ฅผ ์„œ๋น„์Šคํ•  ๋•Œ serve๋ผ๊ณ  ํ•˜๋Š” app์„ ์“ฐ๊ฒ ๋‹ค
        • serve๋Š” ์›น ์„œ๋ฒ„.
          • -s : ์‚ฌ์šฉ์ž๊ฐ€ ์–ด๋–ค ๊ฒฝ๋กœ๋กœ ๋“ค์–ด์˜ค๋“  index.html ํŒŒ์ผ์„ ์„œ๋น„์Šคํ•œ๋‹ค.
          • -s build : build ํด๋” ์•ˆ์˜ index.html ํŒŒ์ผ์„ ์„œ๋น„์Šคํ•œ๋‹ค.
  • npm test

์ˆ˜์ •

  • react-app/src/index.js
    • ์ž…๊ตฌ ํŒŒ์ผ
    • npm start ๋ฅผ ํ•ด์„œ create-react-app ์„ ๊ตฌ๋™์‹œํ‚ค๋ฉด index.js ๋ฅผ ์ฐพ๊ณ  ๊ฑฐ๊ธฐ์— ์ ํ˜€์žˆ๋Š” ๋Œ€๋กœ ๋™์ž‘ํ•จ

About

๐Ÿ“– React์— ๋Œ€ํ•ด ํ•™์Šตํ•œ ๋‚ด์šฉ์„ ์ •๋ฆฌํ•œ ๋ ˆํฌ์ง€ํ† ๋ฆฌ์ž…๋‹ˆ๋‹ค.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published