use-wednesday

1.0.0 • Public • Published

use-wednesday

React Hook for checking if it is Wednesday, my dudes.

NPM

Install

yarn add use-wednesday

Usage

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 */
}

License

MIT

Dependents (0)

Package Sidebar

Install

npm i use-wednesday

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

5.33 kB

Total Files

6

Last publish

Collaborators

  • jgmcelwain