News for hackers. Stuff that matters.
Re:Introducing Hooks by Illniyar on Friday October 26, 2018 @10:38AM (#18309578)
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.

There are no comments on this comment yet.