Frontend Development ยท React
What is state and useState in React?
State stores component data that can change over time. The useState hook returns the current value and a setter that schedules a re-render.
State stores component data that can change over time. The useState hook returns the current value and a setter that schedules a re-render.