npm

@react-hookz/web

React hooks done right, for browser and SSR.

版本 3已同步 3文件 191 SRI 已生成
接入决策台 · 安全可信状态

先确认可用入口,再复制固定版本地址

入口文件、安全评分、扫描覆盖和风险项已合并到首屏,适合上线前快速判断能不能直接接入。

建议复核
安全分
23
最近扫描 2026-07-26
扫描覆盖
66%
127 / 191 文件
高危文件
0
0 条 critical
待复核
8
外联、混淆、敏感行为
推荐入口
Script
SRI 已就绪
SRI 缺失 0
当前版本 26.1.0
63 文件
63 JS / 0 CSS / 0 WASM
8 review files
@react-hookz/web/26.1.0/dist/index.js
https://cdn.ptab.cn/cdn/react-hookz__web/26.1.0/dist/index.js
当前版本 63 个文件,59 个入口候选。未发现可疑外联域名。
生成接入代码
使用路径
01确认版本

固定到 26.1.0,避免线上被隐式升级。

02复制地址

优先使用推荐入口,特殊场景再切换文件。

03检测可用

发布前检测 HTTP、CORS、SRI 和响应速度。

查看全部文件

快速接入

已按当前文件列表自动选择一个更适合浏览器接入的入口文件。完整用法可在下方生成器中切换文件。

<script src="https://cdn.ptab.cn/cdn/react-hookz__web/26.1.0/dist/index.js" integrity="sha256-l+KVA3wDepCmpOD9JIWBTK/epQRDwB13hdEA+9S4nsQ=" crossorigin="anonymous"></script>
3版本
191文件
26.1.0最新

CDN 地址生成器

选择文件后直接复制 URL、Script、Module、CSS 或 WASM 示例。建议复制前先检测一次文件可用性。

文件类型
JS
文件大小
2.7 KB
SRI
已生成
CDN URL
适合放到构建配置、动态加载或手动拼接标签。
https://cdn.ptab.cn/cdn/react-hookz__web/26.1.0/dist/index.js
普通 Script
适合传统 HTML 页面和 UMD/global 构建。
<script src="https://cdn.ptab.cn/cdn/react-hookz__web/26.1.0/dist/index.js" integrity="sha256-l+KVA3wDepCmpOD9JIWBTK/epQRDwB13hdEA+9S4nsQ=" crossorigin="anonymous"></script>
ES Module
适合浏览器原生 module 文件,使用前建议确认该文件支持 ESM。
<script type="module">
  import * as lib from "https://cdn.ptab.cn/cdn/react-hookz__web/26.1.0/dist/index.js";
  console.log("module loaded", lib);
</script>

版本与文件

当前版本 26.1.0,展示 63 / 63 个文件。
@react-hookz/web/26.1.0/dist/index.js
JS
2.7 KB
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/useAsync/index.js
JS
2.5 KB
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/useAsyncAbortable/index.js
JS
1.7 KB
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/useClickOutside/index.js
JS
1.5 KB
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/useConditionalEffect/index.js
JS
1.5 KB
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/useControlledRerenderState/index.js
JS
976 B
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/useCookieValue/index.js
JS
3.1 KB
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/useCounter/index.js
JS
1.5 KB
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/useCustomCompareEffect/index.js
JS
1.4 KB
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/useCustomCompareMemo/index.js
JS
667 B
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/useDebouncedCallback/index.js
JS
2.3 KB
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/useDebouncedEffect/index.js
JS
726 B
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/useDebouncedState/index.js
JS
604 B
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/useDeepCompareEffect/index.js
JS
968 B
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/useDeepCompareMemo/index.js
JS
700 B
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/useDocumentVisibility/index.js
JS
966 B
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/useEventListener/index.js
JS
1.9 KB
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/useFirstMountState/index.js
JS
294 B
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/useFunctionalState/index.js
JS
453 B
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/useHookableRef/index.js
JS
1.2 KB
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/useIntersectionObserver/index.js
JS
4.2 KB
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/useIntervalEffect/index.js
JS
835 B
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/useIsMounted/index.js
JS
647 B
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/useIsomorphicLayoutEffect/index.js
JS
311 B
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/useKeyboardEvent/index.js
JS
1.5 KB
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/useLifecycleLogger/index.js
JS
940 B
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/useList/index.js
JS
2.9 KB
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/useLocalStorageValue/index.js
JS
808 B
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/useMap/index.js
JS
876 B
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/useMeasure/index.js
JS
2.0 KB
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/useMediaQuery/index.js
JS
2.1 KB
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/useMediatedState/index.js
JS
1.1 KB
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/useMountEffect/index.js
JS
369 B
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/useNetworkState/index.js
JS
1.5 KB
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/usePermission/index.js
JS
1.2 KB
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/usePrevious/index.js
JS
374 B
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/usePreviousDistinct/index.js
JS
1.1 KB
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/useQueue/index.js
JS
993 B
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/useRafCallback/index.js
JS
1.5 KB
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/useRafEffect/index.js
JS
629 B
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/useRafState/index.js
JS
606 B
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/useRenderCount/index.js
JS
207 B
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/useRerender/index.js
JS
381 B
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/useResizeObserver/index.js
JS
4.0 KB
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/useScreenOrientation/index.js
JS
595 B
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/useSessionStorageValue/index.js
JS
826 B
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/useSet/index.js
JS
870 B
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/useStorageValue/index.js
JS
6.7 KB
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/useSyncedRef/index.js
JS
360 B
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/useThrottledCallback/index.js
JS
2.1 KB
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/useThrottledEffect/index.js
JS
838 B
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/useThrottledState/index.js
JS
682 B
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/useTimeoutEffect/index.js
JS
1.3 KB
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/useToggle/index.js
JS
1.7 KB
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/useUnmountEffect/index.js
JS
488 B
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/useUpdateEffect/index.js
JS
535 B
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/useValidator/index.js
JS
1.2 KB
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/useVibrate/index.js
JS
1.1 KB
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/useWindowSize/index.js
JS
1.8 KB
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/types.js
JS
11 B
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/util/const.js
JS
599 B
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/util/misc.js
JS
777 B
SRI ready
未分级
0 请求
@react-hookz/web/26.1.0/dist/util/resolve-hook-state.js
JS
634 B
SRI ready
未分级
0 请求

库评论

还没有评论。可以反馈这个库的接入体验、版本建议或兼容性问题。
发表评论

免登录提交。需要填写昵称和邮箱,并完成 TAC 行为验证;内容会自动审核,违规内容不会发布。