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

2.0.0 • Public • Published

hooks

install

$ yarn add @ibrilliant/hooks
hooks 简介
createProviderAndHooks provider进行的包装
createSliceHook 简化获取slice state的方式
DispatcherProvider 简化派发action调用
makeSlice 使用slice来封装useReducer
useMuiAnchorElControl 管理material-uiAnchorEl
useMuiInputControl 管理material-ui input value
useMuiTabsControl 管理material-ui tabs value
useBehaviorSubjectControl 管理rxjs BehaviorSubject
useSubject 管理rxjs subject
useSubscribe 自动订阅、取消 rxjs observable
useActionPending 管理loading,避免出现较短时间的闪烁
useConstant reexport from use-constant
useLocationQuery parse location.search
useNumberInput 数字输入框处理逻辑
useSelectorWithIsEqual 增强useSelector

Readme

Keywords

none

Package Sidebar

Install

npm i @ibrilliant/hooks

Weekly Downloads

1

Version

2.0.0

License

MIT

Unpacked Size

79.9 kB

Total Files

83

Last publish

Collaborators

  • vilyl
  • yiobincn