6 ms·
It is a globally shared variable. Really either react notifies or registers the component to the module to exports useState, or more likely useState goes to so
by Illniyar 8y ago
It is a globally shared variable.
Really either react notifies or registers the component to the module to exports useState, or more likely useState goes to some react internal api and retrieves the currently running component.
It's as much a global variable as the singleton pattern.