리액트란?
-유저 인터페이스를 만들 수 있게 도와주는 라이브러리.
-사용자에게 ui를 보여주고 이벤트를 처리함.
-컴포넌트로 이루어진 라이브러리.
컴포넌트?
-컴포넌트는 한 가지의 기능을 수행하는 UI의 단위.
-서로 독립적이고, 고립되어져 있으며 재사용이 가능함.
-제일 상위에 있는 컴포넌트를 Root라고 함.
-컴포넌트 안에 state가 변경되면 리액트에서 자동으로 render함수까지 업데이트 된다.
-가상의 리액트 돔트리에서 업데이트를 하기때문에 성능에 문제가 생기지 않는다.
*state - 데이터를 가지고 있는 것.
*render- 사용자에게 어떻게 보여질지 정의하는 것.
**리액트 공식 사이트 Docs: https://reactjs.org/docs/getting-started.html
Getting Started – React
A JavaScript library for building user interfaces
reactjs.org
**Create React App: create-react-app.dev/docs/getting-started/
Getting Started | Create React App
Create React App is an officially supported way to create single-page React
create-react-app.dev
'React' 카테고리의 다른 글
React Router란? (0) | 2021.05.13 |
---|---|
리액트 사용 환경 구축 (0) | 2021.04.28 |