1. react 시작( 설정 )
# cmd 에서 실행
npx create-react-app [movie_app]
2. vscode 실행
- 생성 후 cmd에서 code movie_app 입력하면 자동으로 vscode가 실행됨
- vscode에서 npm start 실행
3. react 코드 작성
- react는 먼저 빈 html을 업로드 하고 거기에 우리가 작성한 component를 집어넣음
- 하나의 react application에서는 하나의 component만 rendering 가능 (아래 예시)
'React' 카테고리의 다른 글
[react] Fetching data( async, await ) (0) | 2021.09.02 |
---|---|
[react] state + component life style (0) | 2021.09.02 |
[react] PropType (0) | 2021.08.26 |
[react] Key warning (0) | 2021.08.26 |
[react] Components with JSX + Props + 동적데이터 (0) | 2021.08.26 |