Skip to content

Conversation

@markuskr
Copy link

In 5.0.0 the VisibilitySensor is exported as default, update readme to reflect that.


```js
const VisibilitySensor = require('react-visibility-sensor');
const VisibilitySensor = require("react-visibility-sensor").default;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add another condition?

import VisibilitySensor from 'react-visibility-sensor';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants