3 ms·
> hopelessly dependent on OOP What are you talking about? Sure OOP has its downsides, but JS classes are just functions used to build custom data types. You
by schwartzworld 6y ago
> hopelessly dependent on OOP
What are you talking about?
Sure OOP has its downsides, but
JS classes are just functions used to build custom data types. You could just as easily create the same structures with arrow functions that return objects.
Some languages paradigms encourage OOP more than others. TypeScript is one of them, even if you choose to ignore it, as most React devs seem to.
- austincheney 6y agoTypeScript is a superset of JavaScript. It only encourages type declarations and all the restrictions that come with that. My last three personal projects are written in TypeScript. My current personal project is fairly large at 8mb of documentation and code.