@avinlab/react-size-me
v1.1.5
Published
React component to determine parent container size
Downloads
25
Maintainers
Readme
react-size-me
React component to determine parent container size
Demo
Here is an examples page
Install
# Yarn
yarn add @avinlab/react-size-me
# NPM
npm install --save @avinlab/react-size-me
Usage
import React from 'react';
import SizeMe from '@avinlab/react-size-me';
<div className="container">
<SizeMe>
{({ width, height }) => (
<div className="inner" style={{ width, height }}/>
)}
</SizeMe>
</div>
License
MIT © avin