본문 바로가기
React.JS

[React.js]명령어로 리액트 프로젝트 생성하기

by hans-j 2023. 12. 3.

리액트 프로젝트 설치 전에 다운로드해야할 프로그램들

 

Node.js

npm ( Node Package Manager)


Node.js

 

 https://nodejs.org/ko/download/


npm 

$ node -v

 

npm 으로 진행할 경우 아래의 명령어를 실행

npx create-react-app hello-react

 

OR

yarn

https://classic.yarnpkg.com/en/docs/install#windows-stable

 

Yarn

Fast, reliable, and secure dependency management.

classic.yarnpkg.com

 

yarn으로 진행할 경우 아래의 명령어를 실행

yarn create react-app hello-react

프로젝트가 있는 경로로 이동하기

cd hello-react
yarn start (혹은 npm start)

 

'React.JS' 카테고리의 다른 글

[React.js]아코디언 메뉴 만들기  (0) 2023.11.06
[React.js]구조설계 --스크랩  (0) 2023.09.25
[React]App.css VS index.css  (0) 2023.09.15
[React.js]cmd 창으로 react프로젝트 옮기기  (0) 2023.06.07
[React.js]Redux 적용하기  (0) 2023.05.07