DEV Community

Discussion on: How to mimic componentDidUpdate() with React Hooks

Collapse
 
mattnmayson profile image
Matt Mayson

Wow guys that really solved a problem i had.. useeffect doesn't imitate componentDidUpdate even after using prop as the last parameter , i used Hammeds solution with useDidUpdate and i just added a prevprops var . seems to be working fine so far.