Hooks are a new addition in React 16.8. They let you use state and other React features without writing a class. — React Docs.

State is a set of values that controls the properties or behaviour of a component. useState is a a react API or a function or a ‘hook’ provided by the react library for managing state in our functional components.

Enough with this technical definition, Seriously, what is this useState hook and how does it work ??

Nimish Prabhakar

Software Developer experienced in React, Go, K8s, Docker, Node and AWS.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store