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

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

by Mohit4mDecember 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.

Coin Mentioned

Mention Thumbnail
featured image - How to Understand the Difference Between Function & Class Components in React
Mohit HackerNoon profile picture
Mohit

Mohit

@mohit199

i make mobile apps

About @mohit199
LEARN MORE ABOUT @MOHIT199'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Mohit HackerNoon profile picture
Mohit@mohit199
i make mobile apps

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