4 ms·
I can't remember the last time I even considered using inheritance in javascript ... except to consider it unnecessary and strewn with mines.
by zanethomas 5y ago
I can't remember the last time I even considered using inheritance in javascript ... except to consider it unnecessary and strewn with mines.
- esturk 5y agoThis seems unlikely. Almost every modern Javascript framework uses it. ie) class MyComponent extends React.Component {}
- neallindsay 5y agoEven React is de-emphasizing class inheritance in favor of more function components.
- simonlc 5y agoYeah and with hooks they arent even necessary at all anymore.
- jakelazaroff 5y agoWith one caveat: you still need class components for error boundaries. https://reactjs.org/docs/error-boundaries.html https://reactjs.org/docs/error-boundaries.html