Basics
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
Was this helpful?