Hook that mounts the right renderer into a container ref whenever source changes. Cancels in-flight renders and tears down the previous handle on every change.
source
SSR-safe: nothing happens until useEffect runs in the browser.
useEffect
Hook that mounts the right renderer into a container ref whenever
sourcechanges. Cancels in-flight renders and tears down the previous handle on every change.SSR-safe: nothing happens until
useEffectruns in the browser.