Open curran opened 1 year ago
Something like this:
const [state, setState] = useState({}); const ref = useRef() useEffect(() => { viz(ref.current, {state, setState}); }, [state]); return <div ref={ref}/>;
Something like this: