A beginner’s guide to React hooks

A beginner’s guide to React hooks

What are hooks? According to the React documentation, hooks provides us a way to use state and other features of React without writing a class component. Hooks let you use the class component’s lifecycle features inside a function component. Initially, when I...