Function call in hook with React
So heres is the thing, and i'm trying to study javascript refence x copy, and shallow copy, to understand it.
Basically, if we have a function, and put it into a hook, and export it from the hook:
so, when i click on the Button, the overlay of
firstScreen
doesn't open, like, if a add a navigation on the onclick, and make
it will nav to the first screen, and the useSuccess
tha comes from the hook, comes with isOpen = false
even that, if a add a log on the click:
it's like each useSuccess
that i reference when calling fron the hook, is a diffrent function in memory, pointers to a different one0 Replies