English | 简体中文
Front-end business code tool library
Provide the commonly used React Hooks in the project, and the input and output functions do a special treatment to avoid closure problems, including a wealth of basic Hooks and refined from the business of advanced Hooks.
npm i common-hookyarn add common-hookDefault support for ES Modules-based Tree Shaking
import { useMount, useUnmount } from "common-hook"
useMount(() => {
console.log("useMount")
})
useUnmount(() => {
console.log("useUnmount")
})