3 ms·
It's considered "functional style" because react is a functional reactive programming framework. This is about more than just managing state. If you're not fa
by wrsh07 11y ago
It's considered "functional style" because react is a functional reactive programming framework.
This is about more than just managing state.
If you're not familiar with FRP, then I think learning more about the theoretical side might help clarify why everyone is describing react as functional.
- vezzy-fnord 11y agoI am familiar with FRP. I have never seen React described as FRP, and a Google search for "React FRP" confirms that this is a heterodox belief and in fact it is you who might need to learn more.
- wrsh07 11y agoOh shoot, you're totally right. I was thinking about react + flux, eg this line from the flux overview [https://facebook.github.io/flux/docs/overview.html https://facebook.github.io/flux/docs/overview.html]: "This structure allows us to reason easily about our application in a way that is reminiscent of functional reactive programming, or more specifically data-flow programming or flow-based programming, where data flows through the application in a single direction — there are no two-way bindings" Anyway, I imagine people refer to react as "functional" because they conflate "declarative programming" with "functional programming."
- vezzy-fnord 11y agoRight. Apologies if I came across as abrasive.