New: Intelligent Flashcards spaced-repetition decks for every topic, built to make things actually stick.
What do you get back when you call useState('') inside a component?
useState('')
An object exposing getter and setter methods that read and write the underlying DOM node automatically
A pair: the current value and a setter function that re-renders the component when you call it
A single variable you can reassign directly to update the screen