import { useEffect, useRef, useState } from 'react'; import Popover from '.'; export default { title: 'Unaudited/Popover' }; const Container = ( props ) => { const [ currentRef, setCurrentRef ] = useState( undefined ); const ref = useRef( undefined ); useEffect( () => { setCurrentRef( ref.current ); }, [] ); return ( <>
Target Element
I am the description. ); }; export const Basic = () => { return ; };