import ReactHeightBracket from 'react-height-bracket';
ReactDOM.render(
<ReactHeightBracket>
<p>Fit window's height...</p>
</ReactHeightBracket>
), document.getElementById('#root'));
name | type | default | description |
---|---|---|---|
scroll | Boolean | false | whether fix component's height |
container | String | Window | Window | |
siblingsHeight | number | 0 |
online example: https://ding-js.github.io/react-height-bracket/example/build/