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.
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.