powerhooks:强大的React钩子的集合

时间:2021-03-07 03:58:12
【文件属性】:
文件名称:powerhooks:强大的React钩子的集合
文件大小:1.67MB
文件格式:ZIP
更新时间:2021-03-07 03:58:12
TypeScript - 安装/导入 import { createUseGlobalState } from "powerhooks/useGlobalState" ; export const { useIsDarkModeEnabled } = createUseGlobalState ( "isDarkModeEnabled" , ( ) => ( window . matchMedia && window . matchMedia ( "(prefers-color-scheme: dark)" ) . matches ) ) ;
【文件预览】:
powerhooks-master
----www()
--------package.json(1KB)
--------src()
--------tsconfig.json(557B)
--------.gitignore(310B)
--------public()
--------README.md(2KB)
--------yarn.lock(550KB)
----docs()
--------api-reference()
--------README.md(14B)
--------SUMMARY.md(179B)
----package.json(1KB)
----.github()
--------workflows()
----LICENSE(1KB)
----src()
--------useCallbackFactory.ts(1KB)
--------useWindowInnerSize.ts(550B)
--------useArrayDiff.ts(2KB)
--------useValueChangeEffect.ts(381B)
--------useGlobalState.ts(5KB)
--------withProps.tsx(380B)
--------useDomRect.tsx(4KB)
--------tools()
--------test()
--------useGuaranteedMemo.ts(458B)
--------useNamedState.ts(583B)
--------useWithProps.ts(582B)
--------useEffectButSkipFirstRender.ts(525B)
--------useConstCallback.tsx(425B)
--------useClick.ts(4KB)
--------index.ts(453B)
--------useScopedState.tsx(1KB)
----tsconfig.json(584B)
----.gitignore(648B)
----CHANGELOG.md(1KB)
----README.md(1KB)
----yarn.lock(49KB)
----.gitbook.yaml(13B)
----.gitattributes(58B)

网友评论