Front-end/React

[React] React 작업 환경 설정 및 프로젝트 생성

Bay Im 2024. 3. 9. 11:56

React -작업 환경 설정

  • node.js 및 npm 설치
    • node -v로 설치 확인
  • yarn 설치
    • cmd 창에서 npm install -global yarn 입력
    • yarn -v로 설치 확인

 

React - 프로젝트 생성

  • 프로젝트 생성
    • cmd 창 생성할 디렉터리 위치에서 yarn create react-app 프로젝트이름 입력
      • npm init react-app 프로젝트이름 으로도 가능
    • vscode에서 프로젝트 open 후, 터미널에 yarn start 입력
      • 터미널은 Command Prompt로 변경 후 입력

'Front-end > React' 카테고리의 다른 글

[React] 변수, &&/||, 이벤트 함수  (0) 2024.03.31
[React] Style 적용 (css)  (0) 2024.03.09
[React] Storybook 사용  (0) 2024.02.29
[React] Routing  (0) 2024.02.29
[React] Component Styling  (0) 2024.02.29