CRA

    [JUSTCODE] Basic Foundation - React CRA, Component, JSX

    CRA React를 시작하기 위해서는 CRA를 설치해야한다. 설치하는 명령어는 다음과 같다. npx create-react-app 디렉토리 진입 cd 로컬 서버 띄우기 npm run start http://localhost:3000로 접속하여 리액트 로고가 빙글빙글 돌고있는지 확인 CRA의 기본 폴더 및 파일 초기 구성 node.modules package.json .gitignore index.html index.js App.js public 폴더 src 폴더 Component React에서 사용하는 페이지의 구성 단위 Component의 특징 유지보수가 쉽다. 부모 Component가 자식 Component를 가질 수 있다. 재활용하여 사용하기 좋다. Component에는 Class형과 함수형이 존재..