7 ms·
The only valid use of class is to create nominal types in TS. Take a hint from the react devs, who even switched from compositional classes to functions (never
by chrischen 5y ago
The only valid use of class is to create nominal types in TS. Take a hint from the react devs, who even switched from compositional classes to functions (never inheritance though).