use-unmount-ref

时间:2021-04-11 19:22:07
【文件属性】:
文件名称:use-unmount-ref
文件大小:118KB
文件格式:ZIP
更新时间:2021-04-11 19:22:07
TypeScript useUnmountRef React钩子处理卸载参考。 目录 细节 用法 安装 yarn add @technote-space/use-unmount-ref 或者 npm i @technote-space/use-unmount-ref 用 例如 import type { FC } from 'react' ; import { useEffect , useState } from 'react' ; import useUnmountRef from '@technote-space/use-unmount-ref' ; const TestPage : FC = ( ) => { const unmountRef = useUnmountRef ( ) ; const [ isLoading , setIsLoading ] = useState ( fals
【文件预览】:
use-unmount-ref-main
----.eslintrc(3KB)
----.github()
--------stale.yml(719B)
--------pr-labeler.yml(227B)
--------card-labeler.yml(54B)
--------FUNDING.yml(40B)
--------no-response.yml(715B)
--------config.yml(2KB)
--------CONTRIBUTING.md(2KB)
--------release-drafter.yml(718B)
--------CODE_OF_CONDUCT.md(3KB)
--------ISSUE_TEMPLATE()
--------workflow-settings.json(668B)
--------CODEOWNERS(18B)
--------pull_request_template.md(999B)
--------workflows()
--------labeler.yml(349B)
----yarn.lock(226KB)
----.commitlintrc(60B)
----src()
--------index.ts(321B)
----tsconfig.json(5KB)
----LICENSE(1KB)
----jest.config.js(282B)
----__tests__()
--------index.test.ts(350B)
----README.md(2KB)
----.husky()
--------commit-msg(71B)
--------pre-commit(59B)
--------.gitignore(2B)
----.lintstagedrc(62B)
----.editorconfig(188B)
----.gitignore(50B)
----_config.yml(84B)
----package.json(2KB)

网友评论