【文件属性】:
文件名称:react-height:确定并报告子元素高度的组件包装器
文件大小:15.31MB
文件格式:ZIP
更新时间:2021-05-06 09:22:48
JavaScript
React高度
确定并报告子元素高度的组件包装器
目标
react-height使事情保持简单,因此它不支持嵌套的高度变化,它仅检查直接的子项变化
不基于特定的浏览器API,因此也可以在其他环境中使用
演示版
Codepen示范
安装
NPM
npm install --save react-height
纱
yarn add react-height
1998脚本标签:
< script src =" https://unpkg.com/react/umd/react.production.min.js " > </ script >
< script src =" https://unpkg.com/react-height/build/react-height.js " > </ script >
(Module exposed as `ReactHeight`)
用法
im