React
Updated:
1. React
html, css, javascript 도와주는 도구
가장 많이 사용되고 있다.
- single page application 만들수있음
- component로 html 재사용 편리
- 데이터가 html에 자동 반영됨
- react native로 앱개발 가능
2. React Native
React 문법 그대로 사용해서 안드로이드, IOS 모두 지원하는 어플리케이션 개발가능
- React native 공식문서
https://reactnative.dev/docs/getting-started
3. React 사용법
3.1 프로젝트생성
- npx create-react-app 프로젝트명
- Create Ract App 라이브러리 사용
- node_modules폴더 : 라이브러리 코드 보관함
- public폴더 : static 파일 보관함
- src폴더 : 코드 짜는곳
- App.js : 메인페이지(HTML을 index.html로 보내줌)
- package.json : 프로젝트명, 버전 수정 / 리액트구동에 필요한 라이브러리명 모음
Leave a comment