import type { ComponentType, ReactElement } from 'react'; /** * A hook that takes a component type and props and returns a memoized React element. * This is useful for creating reusable component instances with memoization to prevent * unnecessary re-renders when props haven't changed. * * @template T - The props type for the component * @param Component - React component to render * @param props - Props to pass to the component * @returns Memoized React element * * @example * ```tsx * const MyComponent = ({ title, count }) => ( *
Count: {count}
*