Frontend

리액트 시작하기(작성중)

케키키케 2022. 9. 12. 18:44

1. VisualStudioCode 설치

2. 프로젝트를 생성할 폴더 열기 : File - Open Folder

3. 터미널에 npx create-react-app [생성할 프로젝트명]  입력  ex) npx create-react-app todo :  View - Terminal

- 성공하면 아래와 같은 메시지가 나온다.

Success! Created todo at C:\Users\parksonghee\VisualStudioCode\parksonghee-react-todo-app\todo
Inside that directory, you can run several commands:

  npm start
    Starts the development server.

  npm run build
    Bundles the app into static files for production.

  npm test
    Starts the test runner.

  npm run eject
    Removes this tool and copies build dependencies, configuration files
    and scripts into the app directory. If you do this, you can’t go back!

We suggest that you begin by typing:

  cd todo
  npm start

4. 프로젝트 열기 : File - Open Folder - [생성한 프로젝트명]

 

 

 

참고

리액트란 ? https://ko.reactjs.org/docs/getting-started.html