0hook
TypeScript icon, indicating that this package has built-in type declarations

1.6.0 • Public • Published

0hook

封装日常开发常使用的hook

useBoolean

boolean 状态

useCount

数字状态

useMap

Map状态

useSetState

当state为对象时候, 只修改对象一个值, 就只传对应值即可, 不用全传输 类似 Class Componentthis.setState

useObject

object 状态, 类似 useSetState的更加多方法版

useStorage

字符串状态, 使用Storage 状态缓存 有useLocalStorageuseSessionStorage

useUpdate

更新组件

Readme

Keywords

Package Sidebar

Install

npm i 0hook

Weekly Downloads

15

Version

1.6.0

License

MIT

Unpacked Size

472 kB

Total Files

60

Last publish

Collaborators

  • ruihuag