Deprecated component
InViewport was deprecated in v4. It will be deleted from the repository on 12th July 2022.
InViewport was deprecated in v4. It will be deleted from the repository on 12th July 2022.
InViewport component got removed in version 4.
If you need to use InViewport for any situation, we recommend checking out a react hook that allows using the IntersectionObserver declaratively in your React app to find out if an element is in a given viewport.