@ice/appear
v0.2.1
Published
React component for supporting `appear` and `disappear` events.
Downloads
29
Keywords
Readme
@ice/appear
React component for supporting appear
and disappear
events.
Usage
npm i @ice/appear -S
import VisibilityChange from '@ice/appear';
export default function Home() {
return (
<VisibilityChange
onAppear={() => {
console.log('Something has been shown.')
}}
onDisappear={() => {
console.log('Something has disappeard.')
}}
>
Anything you want to show.
</VisibilityChange>
);
}