Functional Vs Class Component

Опубликовано: 07 Май 2026
на канале: CSC - TEACH
19
2

In this video, I will teach You about the difference between Functional and Class component.
A functional component is just a plain javascript function which accepts props as an arguments and returns a React element.
Use functional component if you are writing a presentational component which does not have its own state or needs to access a lifecycle hooks.

A class component requires to extend from React.Component and creates a render function which returns a React element. This requires more code but it will also give you some benefits which you will see later.


T A L K W I T H M E !
Business Email: [email protected]
Facebook:  / purusottamadhikari234  

#FunctionalVsClassComponent#ByPurusottamAdhikari#ReactFullCourse