paint-brush
How to Understand the Difference Between Function & Class Components in Reactby@mohit199
565 reads
565 reads

How to Understand the Difference Between Function & Class Components in React

by MohitDecember 30th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Using components in React with a better understanding of how they affect your App’s Performance has always been a confusing topic. Performance depends on what the code is doing rather than choosing a class or function. Class Components provide access to more features like (state), but with Hooks that's not valid anymore. The aim is to structure our code in such a way that allows splitting it into more methods and also being able to read the props and state corresponding to the render related to call.
featured image - How to Understand the Difference Between Function & Class Components in React
Mohit HackerNoon profile picture
Mohit

Mohit

@mohit199

L O A D I N G
. . . comments & more!

About Author

Mohit HackerNoon profile picture
Mohit@mohit199

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Roocket