JavaScript/React

리액트 create-react-app으로 생성되는 파일들

Tech Signal 2021. 8. 6. 13:59

src

App.js: App이라는 최상위 컴포넌트

index.js: entry point. index.js에서 시작해서 app.js를 호출하는 등 다른 파일들이 시행되는 곳

App.test.js: test 용

reportWebVitals.js: web 상태를 report

public: 기준이 되는 , 정적 asset들

index.html: 기준이 된다.

manifext.js: 웹 사이트의 기본 정보(로고, favicon 등)

robots.txt: 크롤링 허용/불허 관련 정보

root

package.json: dependency 정보

yarn eject: 환경 설정을 커스터마이징할 거라는 명령. script config 디렉토리가 추가됨