[React] 리액트시작하기 ( props,state 사용법)
React 패키지 설치하기 create-react-app 설치하기 create-react-app란? react를쉽게 사용할수있게 셋팅해준다. 주의:생성하는폴더명을대문자로시작하면안된다.한글폴더명안된다. npx create-react-app 만약에선택한폴더에사용할경우에는‘.’을입력한다. node_modules:reactmodules이이곳에모여있다. Public :브라우저에서로딩이되는 기본되는파일들이 있는 곳이다. Src:소스파일이자리를잡고있다. react 실행 기본 명령어 npm start 현재작업을로컬호스트를통해브라우저에실행시킨다. npm run build App완성시업로드되는압축화일을만들어준다. npm test 작업을테스트작업시사용한다. react실행하기 1.cd폴더명 2.npm start *파일수집이있..