react-visibility-sensor
Advanced tools
Changelog
3.1.1
npm run build
, which is also run on prepublishexample-umd
to show how to use it with plain <script>
tagsChangelog
2.0.0
<div>
(#13)className
or style
props.v1.x
:If you're not setting a className
or style
, no change is required.
Otherwise add your own element as a child and move the className
or style
there. Eg:
<VisibilitySensor className='something' />
<VisibilitySensor><div className='something' /></VisibilitySensor>