@parksuhyun9321/use-media-query 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.MD +5 -1
- package/package.json +1 -1
package/README.MD
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
# @parksuhyun9321/use-media-query
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## 설치
|
|
4
|
+
- npm install @parksuhyun9321@use-media-query
|
|
5
|
+
- pnpm add @parksuhyun9321@use-media-query
|
|
6
|
+
- yarn add @parksuhyun9321@use-media-query
|
|
4
7
|
|
|
8
|
+
## 반응형 커스텀 훅
|
|
5
9
|
- useMediaQuery 선언 시 maxWidth 값을 주고 브라우저 사이즈에 따라 isResize 상태를 변경
|
|
6
10
|
- 브라우저 뷰포트에 따른 조건부 렌더링을 위해 사용
|