个人项目中使用的自定义react-hooks. 使用rollup打包。
- 支持CommonJS模块引入和ES标准模块引入
- 支持Tree-Shaking
功能及使用说明见源码文件顶部注释。 https://github.com/shallinta/smarty-react-hooks
- useAnimation
- useAsyncDebounce
- useAsync
- useCountdown
- useInput
- useKeyDown
- useDragNDrop
- useUpdateEffect (useUpdateLayoutEffect, useFirstMountState)