Consider the following code
useEffect(effect, [v]) // v can be undefined
I want to run the effect function only
effect