3 ms·
I haven't done a great deal of React, but having inherited a codebase with both class components and hooks sprinkled through, the class components are better or
by thrower123 5y ago
I haven't done a great deal of React, but having inherited a codebase with both class components and hooks sprinkled through, the class components are better organized if the component actually does anything useful.
Hooks seem to be fine for dumb little UI bits that you'd use directives for in AngularJS.