0
7
llucycodes42
The code fragment uses an effect to run a function twice with two different values. The first time, the function returns nothing, and the second time, it returns the value of third.
Library: react
Shortcut: use_effect_snippet
useEffect(() => {
first
return () => {
second
}
}, [third])