what difference between react func and class components

Solutions on MaxInterview for what difference between react func and class components by the best coders in the world

showing results for - "what difference between react func and class components"
Arda
20 Mar 2016
1And so to answer our question before, you should use functional components if you are writing a presentational component which doesn’t have its own state or needs to access a lifecycle hook. Otherwise you can stick to class components or take a look into the library recompose which allows you to write functional components and enhance them with a state or lifecycle hooks with HOCs!
2Source: https://djoech.medium.com/functional-vs-class-components-in-react-231e3fbd7108
queries leading to this page
function component vs class component reactreact function component vs class componentfunction vs class component reactdifferance between and function vs class component reactfunctional vs class components reactreact function vs class componentwhat difference between react func and class componentsreact difference between class and functionreact function vs class componentsreact component vs function when to use classdifference between functional and class components reactfunctional vs class components react function components vs class components reactdifference between class based component and functional component reactdifference between functional and class components in reactdifference between class component and functional component in reactjswhat is the difference between class and function component in reactdifference between class and functional components reactdifference between function and class components in reactreact function component vs class componentsclass vs function component reactreact class component vs functionfunction based vs class based components reactreact class vs function componentwhat is the difference between class component and function componentclass vs function components in reactdifference function and classes in reactwhat is the difference between class based and functional components in react 3fwhat is the differnece between class based and functional components in reactreact function component vs classdifference between function and class method in reactdifference between react class component and functional componentfunctional components vs class components in reactdifference between function and class component in reactreact when to use class vs function componentsreact component class vs functionfunctional vs class components in reactwhat difference between react func and class components