What is the difference between Function Based Component and Class Based Component?

The Main Difference is of Syntax. Function Based component used props as an argument and is also called stateless component and In class based component we extends all the property of predefined function and used according to our need.

Class Based Component use state and the state is used as props in child component.In Class Based component we can use different lifecycle method of component.

Suggest An Answer

No suggestions avaliable!

Latest post from React js interview questions

Ask Question