Basic hook usage
import React from 'react'; import { useInterval } from 'react-interval-hook'; export const Example = () => { useInterval(() => { console.log('I am called every second'); }); return null; };
Last updated 1 year ago