mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Sorry about the thrash in advance! This removes the top level `forget` directory which adds unnecessary nesting to our repo Hopefully everything still works
18 lines
432 B
TypeScript
18 lines
432 B
TypeScript
/**
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
/*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*/
|
|
|
|
import type { EffectCallback } from "react";
|
|
import { useEffect } from "react";
|
|
|
|
export default function useMountEffect(effect: EffectCallback) {
|
|
return useEffect(effect, []);
|
|
}
|