- accepted / - tried
Here is a simple problem, implement useEffectOnce() as the name says itself, it runs an effect only once.
useEffectOnce()
Always try to find a better approach.
Try it out
Console