News for hackers. Stuff that matters.
Re:Show HN: A JavaScript library for imperative JSX by Justsignedup on Tuesday July 09, 2024 @09:42AM (#40916046)
I have to strongly agree with this. The entire point of react was to avoid all the challenges of old imperative coding of syncing up state with render state. The Dom digging was an absolutely genius idea to stop that nonsense and just render the correct state and let the framework handle the rest.

I wrote a ton of backbone code, and was a major fan of jquery before Dom querying was even a feature of browsers. And once I went react I really fell in love with frontend dev. Frontend is so simple now because of it, while it used to be dare I say more complex than backend back in the day.

Re:Show HN: A JavaScript library for imperative JSX by danielvaughn on Tuesday July 09, 2024 @10:07AM (#40916324)
Same, used jQuery for years and had a love/hate relationship with it.

You're correct that React solved the imperative problems from before, but that's not the only factor to consider. You have to weigh the problems it solves against the problems that it causes.

Re:Show HN: A JavaScript library for imperative JSX by Justsignedup on Tuesday July 09, 2024 @10:14AM (#40916424)
Eh. For me, it was vastly worth it. Yes there are drawbacks to react. But I feel like the gains far far far outweigh them.
Re:Show HN: A JavaScript library for imperative JSX by danielvaughn on Tuesday July 09, 2024 @10:40AM (#40916691)
totally fair