Do we still need Class-based components in React?

Photo by Sebastian Svenson on Unsplash

Short Answer: No.

Long Answer:

Well, there are several factors that come into play when saying that Class-based components aren’t needed anymore, the most important of which is constituted by the addition of Hooks.

Introduction of Hooks

--

--

--

We are preoccupied with easing Web Development and helping you become a freelancer through tips & advice.

Recommended from Medium

Prevent Multiple Form Submissions When Using Vanilla JavaScript

React Native : Best Practice on Folder Structure

Why You Should Not Use Classes in JavaScript

Beautiful Pictures Of Our Earth — 7

meme

7 array operations in JavaScript and C#

How to Become a Front-End Web Developer

Front End Development with visual studio code

APWHY??!!?

Why React Native?

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
Vlad Mihet

Vlad Mihet

Passionate Software Engineer from Romania interested in expanding my knowledge in Web Development by learning new tech architectures and best practices. 😁

More from Medium

What are Higher Order Components (HoCs) in React?

React forwardRef in 2 Minutes

Some react concepts

Learn how powerful NextJS is and how it can improve your web development