3 ms·
> > What is the benefit of being functional? > For React, the idea is building the UI as a function of the state Well, if you have state you're already not fu
by flowerlad 5y ago
> > What is the benefit of being functional?
> For React, the idea is building the UI as a function of the state
Well, if you have state you're already not functional.
Look, React does not have to be functional to be useful! Let's not misappropriate the FP label and apply it to a tech that is clearly not functional, misleading a whole generation of developers.
React is great, hooks are OK, but FP it is not!!
- Zababa 5y ago> Well, if you have state you're already not functional. That's just wrong. State will exist, wether you like it or not, and you'll have to deal with it. Again, you're using FP to say pure FP. Is Standard ML not functional according to you?
- flowerlad 5y ago> State will exist, whether you like it or not, and you'll have to deal with it. Yes, state will exist... in a thin outer layer. Pure core with a thin impure outer layer. If state is distributed throughout the entire program then it is not FP.