Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#React 설치하는 법 #1

Open
hkkim2021 opened this issue Mar 16, 2024 · 0 comments
Open

#React 설치하는 법 #1

hkkim2021 opened this issue Mar 16, 2024 · 0 comments

Comments

@hkkim2021
Copy link
Owner

React 설치하는 법

  1. node.js 설치
  2. 터미널에서 npx create-react-app 프로젝트제목 입력 (안돼면 앞에 sudo붙여서)
  3. 프로젝트가 생성됨
  4. 터미널에서 npm start누르면됨
  • 프로젝트 파일들 설명
  1. node_modules폴더: 라이브러리 코드 보관함
  2. public폴더: html, image 등 static 파일 모아놓는 곳
  3. src폴더 : 여기가 소스코드 보관함. 이 중 App.js가 메인 페이지이다.
    → html을 실제 .html파일이 아닌 App.js에 작성한다. 그렇게 할 수 있는 이유는 JSX(.js파일에서 쓰는 html대용품)때문이다.
  4. package.json: 프로젝트 정보 기입해 놓는곳
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant