@dctxf/hooks
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

@dctxf/hooks

自用的一些hooks

使用

npm i @dctxf/hooks
pnpm i @dctxf/hooks

hooks

useBark

bark 通知

import { useBark } from '@dctxf/hooks'

const App = () => {
  const {push,loading,error} = useBark({apiUrl:'xxxx'})
  return (
    <button onClick={() => {
      push({title:'hello',body:'world'})
    }}>bark</button>
  )
}

Readme

Keywords

none

Package Sidebar

Install

npm i @dctxf/hooks

Weekly Downloads

2

Version

1.0.2

License

ISC

Unpacked Size

12.7 kB

Total Files

12

Last publish

Collaborators

  • dctxf