A React Hook like React.useEffect but only run once, equivalent to useEffect(callback, [])
, but with more semantic name. It's merely an alias to useEffect
with an empty dependency array.
See API for more details.
Click links below to view source on GitHub.
Same as React.useEffect.