News for hackers. Stuff that matters.
Re:Common Beginner Mistakes with React by IshKebab on Sunday March 12, 2023 @09:42AM (#35119930)
I've used Vue. It's much worse than React. It's probably ok for very small sites but its automatic reactivity system seems almost deliberately designed to produce spaghetti code and subtle bugs. Plus it has poor Typescript support. You don't have to worry at all about type errors in TSX.

That said, I'm liking Yew a lot more than React. The difficult thing with React is state management, which is why it's common to resort to immutable state (even though that's a real pain in JS), and even then React chickens out by assuming components are impure by default.

Everything makes way more sense in Rust. The big downside is that Yew doesn't really have anything like Bootstrap or Blueprint yet. I mean there are ports like Yewprint (great name) but they seem to be complicated to set up and you lose the really nice simplicity of Trunk.

Re:Common Beginner Mistakes with React by Xevi on Monday March 13, 2023 @08:31AM (#35134816)
> Plus it has poor Typescript support.

Vue 3 has excellent Typescript support. It's even built in Typescript. What exactly are you referring to when you say that it's "poor"?

Re:Common Beginner Mistakes with React by Already__Taken on Saturday March 18, 2023 @02:37PM (#35211847)
actual developer QoL and tooling "Vue 3 has excellent Typescript support." is only a very recently true statement. Love vue though.