3 ms·
Prop drilling wouldn’t be an issue in a functional language as partial application could solve this problem. I think a lot of the issues with React in general
by williamcotton 3y ago
Prop drilling wouldn’t be an issue in a functional language as partial application could solve this problem.
I think a lot of the issues with React in general has to do with attempting to contort JS into a functional language.
useContext can lead to some gnarly code.
- bobthepanda 3y agoThe major issue, IMO, is that the DOM is just markup with an API grafted on, and so any framework attempting to add the slightest bit of composability or state management has to twist and turn itself to be compatible in all browsers. And that's how we got here, because everyone wants to make their applications available on as many platforms as possible, without having to maintain five or six separate teams that have to coordinate a roadmap, and the browser is the only somewhat consistent way to do this.
- simonbarker87 3y ago> contort JS into a functional language I made something last year in a functional style as I was fresh off the back of a few React jobs and projects. I got a proof of concept working but the code was awful to work with. I took a couple of days to start over and rewrite it with OOP principles and it was in a much better state afterwards.
- selfmodruntime 3y agoThis is untrue. You can observe this in scalas implicits, which generate an insane mess in any medium to large codebase.