useState in React
Expert-Level Explanation
useState is a hook that lets you add state to functional components. It returns a pair: the current state and a function that updates it.
Unlike class component state, useState does not automatically merge update objects. You...
akashthoriya.hashnode.dev1 min read