DEV Community

Discussion on: Have React hooks replaced class lifecycle methods 🤔?

Collapse
 
juliusdelta profile image
JD Gonzales

Not entirely.

Hooks are still so new that best practices haven't entirely been figured out. If you are looking for a certain stability and confidence in your component side effects, I think classes would provide the best way. That being said, at my job we're using hooks in new code, but we're not putting in much effort into refactoring old code quite yet until we develop code quality standards and guidelines for how to really use hooks.