@lotips/react
TypeScript icon, indicating that this package has built-in type declarations

0.8.7 • Public • Published

@lotips/react

do something for react just like lodash

No styles, No components, With pure ts

hooks

  • useAsyncState - 异步的初始化state
  • useAsyncEffect - useEffect传递异步的函数
  • useClickBoardObserver - 跨Tab的监听剪贴板(需要赋予权限
  • useClickOutside - 一个DOM节点内外的点击事件
  • useDebounce - debouncehooks版本
  • useBatch - 批量的同时请求数据,不需要而外传递ids。而是收集id进行debounce请求。

components tools

  • getComponentsNotOfA - 从children中获取非A的组件
  • getComponentOfA - 从children中获取A的组件
  • hasComponentOfA - 从children中是否A的组件

Readme

Keywords

none

Package Sidebar

Install

npm i @lotips/react

Weekly Downloads

3

Version

0.8.7

License

none

Unpacked Size

42 kB

Total Files

44

Last publish

Collaborators

  • qidanta