文件名称:react-breakpoints-hook:React钩子以提供响应式设计逻辑
文件大小:41KB
文件格式:ZIP
更新时间:2024-05-19 15:05:36
react javascript hooks media-queries hooks-api-react
React断点挂钩 安装 yarn add react-breakpoints-hook useBreakpoints配置 // Configuration object consists of breakpoints names which have associated a min and a max value in pixels. // Note: if max value is omitted it will be considered as the window width. { breakpointName1 : { min : 0 , max : 360 } , breakpointName2 : { min : 361 , max : 960 } , breakpointName3 : { min : 961 , max : 1400 } , break
【文件预览】:
react-breakpoints-hook-master
----.gitignore(323B)
----README.md(1KB)
----.nvmrc(9B)
----examples()
--------App.js(534B)
----package.json(906B)
----src()
--------index.js(2KB)
----.babelrc(63B)
----index.js(4KB)
----yarn.lock(104KB)