3 ms·
I’ve personally never thought I was doing functional programming with React. I think of it more like borrowing from the functional programming paradigm to gain
by steve_adams_86 6y ago
I’ve personally never thought I was doing functional programming with React. I think of it more like borrowing from the functional programming paradigm to gain better control over state and corresponding UI behaviours and appearances, at least where it’s useful to do so, and otherwise it’s not very functional at all. It feels like a very borrowed term. There is heaps of non functional programming involved in React code bases.
- flowerlad 6y ago> borrowing from the functional programming paradigm to gain better control over state and corresponding UI behaviors That's an exercise in futility. If you are rendering read-only screens than you can use pure functions to render the screen. But if you need interactivity then attempting to add interactivity while using pure functions is counter-productive.
- jameshart 6y agoAre you.... asserting that it's impossible to make a program that handles interactivity... using functional programming?
- flowerlad 6y agoI am asserting it is counterproductive. In other words, the code will be convoluted and hard to maintain, which is the opposite of the goal of functional programming.