React Functional Components VS Class Components Practical Differences : Part 14

preview_player
Показать описание
About Difference between React Class Component Vs React Functional Component

In this part we have seen practical #difference between #classComponent vs #functionalComponent.

We have also seen how to decide which component you should go for?
---------------------------------------------------------------------------------------------------------------------
Next Part : React JS Component Lifecycle- Hooks and Methods with Practical Example : Part 15
---------------------------------------------------------------------------------------------------------------------
Previous Part : Debug React App using React Developer Tool [Chrome]: Part 13

---------------------------------------------------------------------------------------------------------------------
GitHub Link for "ReactJS tutorial for beginners with coding locker Part 1"

---------------------------------------------------------------------------------------------------------------------
Related videos
Styling Components in React with Stylesheet and with Inline CSS: Part 9

Admin LTE 3 Integration with React JS tutorial with Practical Example

Deploy my first React JS Application to Azure App Service

---------------------------------------------------------------------------------------------------------------------
CodingLocker Blog

---------------------------------------------------------------------------------------------------------------------
Subscribe CodingLocker
Рекомендации по теме
Комментарии
Автор

Differences explained are fine, but in description when should you choose which component type, if you are writing code in 2021 and still using class component, that means you don't have a sound understanding of react hooks. I don't see any need for class based component now, write functional components and use hooks when ever necessary..

nirjharpaul
Автор

Wow! Finally someone explained that to me. Thank you!

ivankhoda
Автор

Why we need functional components in react??

Though there are illustration that
Functional components are stateless, more of representational components, no need to extend from component, code size is less, No render function.. etc

But even we can use states in fun component then what other things that makes fun component different from class component

Anything extra you feel wanted to add ?

Thanks

hk_build
Автор

I was actually searching this type of video, Subscribed immediately . Thanks @CP Variyani👏

nikleshraut
Автор

this is not correct according to react 16.8. Functional components have hooks for

lokeshagarwal
Автор

Class Based description should be in red color and Functional should be in green, Personally I thought.

nikleshraut