react 시작하기

코뿌·2022년 5월 19일
0

front-end

목록 보기
4/4
  1. react홈페이지에서 새로운 react앱 만들기
  2. create react app클릭>create react app클릭>github에서 오른쪽에 연결된 링크 create-react-app.dev클릭
  3. npx create-react-app my-app명령어 확인
  4. node.js설치
  5. vc에서 터미널 키고 command prompt에서 'npx create-react-app my-app'로 my-app이라는 react app생성
  6. 'npx create-react-app .'입력

    다음과 같을 경우 'cd my-app'으로 app에 들어가서 npm start해야함
  7. 'npm start'로 시작. 종료는 ctrl+c
  8. 배포는 'npm run build'로 빌드하고 'serve -s build'로 배포
profile
꾸준하게

0개의 댓글