React Hook for checking if it is Wednesday, my dudes.
yarn add use-wednesday
import React from 'react';
import useWednesday from 'use-wednesday';
const config = { precision: 4 };
const Example = () => {
const { wednesday } = useWednesday(config);
return (
<h1>{wednesday ? 'It is Wednesday, my dudes.' : 'Not Wednesday. :('}</h1>
);
}
// config
{
precision: Number /* optional. number of times, per second, to check if it is Wednesday */
}
MIT