News for hackers. Stuff that matters.
Re:Crank.js – Write JSX-driven components with functions, pr... by namelosw on Saturday April 18, 2020 @04:40AM (#22906250)
What if there’s no class in the language?

The ‘original React’ as you mentioned for example, was modeled in standard ML. There’s no class in the language and it is okay to model the state in function.

Re:Crank.js – Write JSX-driven components with functions, pr... by jameslk on Saturday April 18, 2020 @11:07AM (#22908234)
Why is this important? Especially in regards to the author's point about keeping frontend development simple?
Re:Crank.js – Write JSX-driven components with functions, pr... by namelosw on Saturday April 18, 2020 @10:43PM (#22913045)
Because class is neither simple nor mandatory.

And people have to do massive meaningless things like swapping between class and function components every day, because of the introduction and elimination of states.

Re:Crank.js – Write JSX-driven components with functions, pr... by pier25 on Saturday April 18, 2020 @12:59PM (#22909059)
There was OOP in JavaScript before classes existed via prototype.