-
[리액트를 다루는 기술] JSX && 알쓸신잡프로그래밍/React 2023. 6. 18. 14:34
JSX 란?
자바스크립트의 확장문법으로써 상당히 HTML과 비슷한 모습이다.
브라우저가 실행되기 전에 번들링과정에서 바벨을 사용해 JS로 변환되기 때문에 마음껏 리액트에서 사용된다.장점 : HTML이랑 유사해서 보기 좋음 ㅎ
- 사용 팁 : falsy한 값 중 0은 false로 나타나지 않는다.
- undefined 는 함수안에서 사용하지 말자 근데 JSX에서는 가능하다(tag안에 쓸 수 있다)
알쓸신잡
ES Line && Prittier 좋구요~
import 는 모듈을 불러오는 기능을 하는 놈으로써 node에서 제공하는 기능이란다
리액트는 웹펙을 이용해서 번들링을 한단다로더의 설치는 따로 해주어야하지만 creat react-app에서 자동으로 설치해준단다
번들링은 나중에 따로 찾아봐야지^^
'프로그래밍 > React' 카테고리의 다른 글
[리액트를 다루는 기술] immer (0) 2023.06.20 [리액트를 다루는 기술] 컴포넌트의 반복 (0) 2023.06.18 [리액트를 다루는 기술] Hook (useState, Effect, Reducer, Ref) 1편 (0) 2023.06.18 [리액트를 다루는 기술] 컴포넌트 (0) 2023.06.18 [리액트를 다루는 기술] 랜더링 최적화 (0) 2023.06.17