Managing Component State

Keep a value that should update the page in state with useState, because changing an ordinary variable never makes React redraw the component.

Updated

Cheat sheet: Managing Component State
Category
React
Level
Apprentice
Tags
react