What do we understand about hooks in a general sense? It is something that is used to hang other things on. So how hooks are used in react to hold something? Let’s discuss it. We have two types of components in react. One is the class component and the other is the function component. Class components are frequently called stateful components and function components are called stateless components. But this is not true always because you can make function component stateful using state hook(useState)......

Read this article on Medium