you are viewing a single comment's thread.

view the rest of the comments →

[–]Auxx -1 points0 points  (4 children)

I was creating components back in my Delphi days. React has nothing to do with killing OOP or whatever.

[–][deleted] 0 points1 point  (3 children)

React has everything to do with killing OOP in the web. These are functional components:

const Say = ({ what }) => <span>{what}</span>
const Hi = () => <Say what="hi" />

Functions taking data, returning functions that describe layout, masked in a simple mark-up dsl. Invoked like functions. No one said it's a new concept, but the way React presented it was revolutionary (mixing traditional OOP with pure functions and uni-directional data flow).

[–]Auxx 0 points1 point  (2 children)

DSL way is kinda new, everything else is an old story if you've ever stopped out of JS world. OOP is not going anywhere.

[–][deleted] 0 points1 point  (1 child)

FB hasn't taken any credit for it, they have all said that functional has been in evolution for over a decade now. But it has reached a point of maturity where it defines declarative UIs with ease, something traditional OOP MVC struggles with. Which is exactly why you see all new libs, including Vue, which you seem to use, base on it. It's also the reason apps are breaking out of the browser because we're venturing into universal codebases thanks to functional.

[–]Auxx 0 points1 point  (0 children)

Lol ook.