What are hooks?

Posted by Prem Tiwari | Updated on

What are hooks?

Hooks is a new feature(React 16.8) that lets you use state and other React features without writing a class.

Let’s see an example of useState hook example,


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers