- accepted / - tried
Here is a simple problem, implement useEffectOnce() as the name says itself, it runs an effect only once.
useEffectOnce()
What is time & space complexity of your approach?
Try it out
Console