import React, { useEffect, useRef } from 'react'; import { GenericContentItemProps } from './types'; const GenericContentItem: React.FC = (props) => { const { renderFunction, } = props; const elementRef = useRef(null); useEffect(() => { if (elementRef.current && renderFunction) { renderFunction(elementRef.current); } }, [elementRef]); return (
); }; export default GenericContentItem;