@custom-react-hooks/use-effect-once

中文文档
1.5.1发布于 2024/08/18MITTypeScriptCommonJS零依赖近 30 天下载 3490

useEffectOnce is a custom hook in React designed to mimic the behavior of componentDidMount and componentWillUnmount lifecycle methods in class components. It's a modified version of useEffect that runs only once when the component mounts.

运行依赖 0

没有声明运行依赖。

Peer 依赖 1

开发依赖 8