@junipero/hooks
v3.12.9
Published
π Junipero Design System React hooks
Readme
Installation
yarn add @junipero/hooksUsage
import { useEventListener, useTimeout } from '@junipero/hooks';
export default () => {
useTimeout(() => {
console.log('This has been executed 1s after first render!');
}, 1000);
useEventListener('click', () => {
console.log('You clicked inside the current document');
});
return <div />;
};Documentation
https://junipero.design/components/use-event-listener
Contributing
Please check the CONTRIBUTING.md doc for contribution guidelines.
License
This software is licensed under MIT.
