4 ms·
What if there’s no class in the language? The ‘original React’ as you mentioned for example, was modeled in standard ML. There’s no class in the language and i
by namelosw 7y ago
What if there’s no class in the language?
The ‘original React’ as you mentioned for example, was modeled in standard ML. There’s no class in the language and it is okay to model the state in function.
- jameslk 7y agoWhy is this important? Especially in regards to the author's point about keeping frontend development simple?
- namelosw 7y agoBecause class is neither simple nor mandatory. And people have to do massive meaningless things like swapping between class and function components every day, because of the introduction and elimination of states.
- pier25 7y agoThere was OOP in JavaScript before classes existed via prototype.