DEV Community

Discussion on: React Beginner Question Thread ⚛

Collapse
 
dan_abramov profile image
Dan Abramov

We explicitly discourage it and will continue to. Your use case is solvable by composition just fine. Instead of overriding methods, have the “base” components take those functions as props. Then have the “concrete” components render it and pass their implementations of these methods.