Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 245 Bytes

use-mounted.md

File metadata and controls

15 lines (10 loc) · 245 Bytes

useMounted

Check if a component has been mounted.

Example

import { useMounted } from "@casperiv/useful/hooks/useMounted";

const Component = () => {
  const mounted = useMounted();

  return <p>Am I mounted: {mounted}</p>;
};