8 ms·
The React team should have done their own language, rather than making it a framework/library. Then they could ensure the absence of side effects in rendering c
by peterkelly 2y ago
The React team should have done their own language, rather than making it a framework/library. Then they could ensure the absence of side effects in rendering code, and had a better way of detecting updates. The knowledge about how to do this was already out there for many years before they started: https://en.wikipedia.org/wiki/Functional_reactive_programming https://en.wikipedia.org/wiki/Functional_reactive_programmin...
- CityOfThrowaway 2y agoYes, but if they did their own language it would have almost certainly died in obscurity. React won because it solved a real pain point for a group of people, using the techniques they were already using... but better! Having built large apps in angular, handlebars, and jquery... it was (and still is) a godsend for building highly interactive, stateful web applications. I am deeply skeptical of some of the stuff that people are doing now wrt. putting backend logic into React components, but the fundamentals of React are still very reasonable to me.
- valenterry 2y agoThat's exactly my point.
- reconvene1290 2y agoIsn’t that ReScript? https://rescript-lang.org/ https://rescript-lang.org/