Skip to content

The open alternative to Salesforce, designed for AI.

223 B
Raw Blame
import { useEffect } from 'react';

type OnMountEffectProps = {
  onMount: () => void;
};

export const OnMountEffect = ({ onMount }: OnMountEffectProps) => {
  useEffect(() => {
    onMount();
  }, []);

  return null;
};