DEV Community

Discussion on: React: useEffect explained with lifecycle methods

Collapse
 
oathkeeper profile image
Divyesh Parmar

Is there a way to implement other Life Cycle Methods e.g., shouldComponentUpdate, which I guess mostly people use with React.PureComponent or that is what I have heard and learnt in interviews.

There is also other way to do it. I guess by using React.memo() function so how can we do that with functional component?