by Balaganesh Damodaran

How to convert React class components to function components using Hooks

Over the course of the past month, I’ve spent a lot of time working with React hooks. I’ve been building function components using hooks, instead of the traditional class-based components. I’m not going to claim that hooks are definitely superior to class-based components. But there is a huge usability boost, while writing your components as function components…