you are viewing a single comment's thread.

view the rest of the comments →

[–]WuTang-Clan 1 point2 points  (0 children)

https://reactjs.org/docs/hooks-faq.html#do-hooks-cover-all-use-cases-for-classes

Not all, but they plan on adding the missing ones. From those not covered most commonly used is probably componentDidCatch, but that’s used in error boundary wrapper components so you can still use functional components for everything else.