Class Component VS Functional Component (2022 ver.)

Seems like the latter has changed in 2022


(Source: javascript - React functional components vs classical components - Stack Overflow)

Is this true? If so, with these new changes, would using state/lifecycle in functional components make functional components less clean (the main reason functional components are used)?

If using state/lifecycle in functional components were easy, clean, and just as efficient as class, apart from edge cases where error handling is necessary, I’d definitely be using these instead.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.