@black-mirror/hooks v1.2.6
Black mirror hooks
The black mirror hooks allows to reuse react hooks for the project black mirror.
Getting started
To install the package, run the command:
npm install --save @black-mirror/hooks
Hooks
To import the hooks
import * as hooks from '@black-mirror/hooks';
Types of hooks
Date hooks
use-date.js is a react hook that is used to format the date and refresh everyday at midnight.
Interval hooks
use-interval.js is a react hook that is used to setup intervals for the results shown in the application.
Settings hooks
use-settings.js is a react hook that is used to retrieve the current settings of the device and also updates the settings when modified.
Timer hooks
use-timer.js is a react hook that is used to obtain the time of the day.
2 years ago
2 years ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago