DEV Community


Discussion on: Everything you need to know about React Hooks

vcarl profile image
Carl Vitullo Author

Inheriting from a custom class is considered an antipattern in React, so while it works on a technical level I wouldn't say it's a viable option. All the downsides of mixins without any benefits over other ways of composing functionality.