@gdo-bzh/use-reminders-state
v1.0.0-rc.4
Published
![version](https://img.shields.io/npm/v/@gdo-bzh/use-reminders-state)
Downloads
3
Readme
use-reminders-state
Create reminders and set alerts based on time.
You can:
- set a due date
- flag a reminder
- complete a reminder
- set a level of priority ( Low | Medium | High)
Install
yarn add @gdo-bzh/use-reminders-state react lodash.pickby use-deep-compare-effect
# or
npm i @gdo-bzh/use-reminders-state react lodash.pickby use-deep-compare-effect -S
Usage
import React from 'react'
import { useRemindersState } from 'use-reminders-state'
const Example = () => {
const {
reminders /* reminder list */,
alarms /* list of scheduled alarms */,
addReminder /* add a reminder */,
deleteReminder /* delete a reminder */,
toggleCompleteReminder /* toggle complete status */,
toggleFlagReminder /* toggle flag status */,
updateReminder /* update reminder */,
setReminderPriority /* set level of priority */
} = useRemindersState()
return <div>...</div>
}
License
MIT © gdo-bzh