STUDY/[ React ]

react 레이아웃 Context.Provider

Lim임 2025. 11. 25. 03:06

 

children을 사용하는 방식

1. props로 사용하기

\

2. children으로 사용하기

 

---

global style

1. 에릭마이어의 reset css

element를 모두 0으로(reset) 하는 것

 

2. normalize.css

각 element의 고유한 특성은 유지하면서 

브라우저의 차이만 잡아준다

 

3. sanitize.css

normalize의 진보된 버전

sanitize.css 를 사용할 것 

import후 index.css에 추가

 

styled component 

쓰는 이유: h1 에 뭐가 적용될지 머름

상태값이 여러개라면 ?

css가 뭐가 우선일까?

각종 이유들

 

---

테마만들기

 

테마를 왜 쓸까요?

---

Theme Switcher with Context API

https://ko.legacy.reactjs.org/docs/context.html

https://ko.react.dev/reference/react/useContext

 

useContext – React

The library for web and native user interfaces

ko.react.dev

 

'STUDY > [ React ]' 카테고리의 다른 글

useState 와 useContext 차이점 및 context를 사용해야 하는 이유  (0) 2025.11.26
자주쓰는 React Hook 정리  (0) 2025.11.26
react new start  (0) 2025.11.22
forwardRef 사용법 - 장기 프로젝트  (0) 2025.11.22
useRef  (0) 2025.11.22