News for hackers. Stuff that matters.
Re:useStateMachine: A ½ kb state machine hook for React by nightski on Saturday May 22, 2021 @11:11AM (#27247268)
The entire concept of reactive objects brings back memories of extreme pain from KnockoutJS days (and terrible performance in complex scenarios to boot). I prefer just working with plain old data structures.
Re:useStateMachine: A ½ kb state machine hook for React by benatkin on Saturday May 22, 2021 @11:56AM (#27247710)
I prefer working with just plain old setup functions, that are called once.
Re:useStateMachine: A ½ kb state machine hook for React by bobthebuilders on Sunday May 23, 2021 @12:49AM (#27252539)
I find React and Vue to be different expressions of the same core concept in a way. Althoguh I do prefer the functional nature of React, reactive objects are a lot less boilerplate, even if it might be a bit slower. The composition api itself is actually I think where it shines, because the options API is very mediocre in my opinion.
Re:useStateMachine: A ½ kb state machine hook for React by yurishimo on Sunday May 23, 2021 @08:31AM (#27254555)
Is it actually slower though? I feel like that’s Vue’s entire marketing strategy. “We’re just as fast and small as React but include way more out of the box and it’s easier to grok for new people”.