hook everywhere it's called or are the calls 'hoisted' to a global scope
e.g
a list component that has:
const hook = useSomehook()
will an instance of 'hook' be generated for every element of the list or will React somehow detect the loop and create a single reference ?
the hook itself is not instantiated
Обсуждают сегодня