Skip to content

MatchaDog/hooooks

Repository files navigation

hooooks

hooooks 是基于业务和 react hooks 整合成的 hooks 库

Hook 是 React 16.8 的新增特性,使用前确保已阅读点这相关文档

安装

yarn add hooooks
// or
npm install hooooks

使用

import { useDidMount } from "hooooks";

const Demo = () => {
    useDidMount(()=>{
        console.log("component did mount!")
    })
    return <div></div>;
};