News for hackers. Stuff that matters.
Re:If Not React, Then What? by baobabKoodaa on Sunday December 01, 2024 @04:45AM (#42287379)
> And your app is tiny. It's got like two source files.

If the same app had been written by a typical team of React devs, it would be >1000 source files and 50K LoC. That's not an argument against my approach, it's an argument in favor of it.

Re:If Not React, Then What? by palmfacehn on Sunday December 01, 2024 @06:01AM (#42287704)
The SPA version would unmanageable without the latest 4th generation JS build tools. Spend an afternoon reading the manual for the configs. Watch the output of 'pnpm list' break your terminal environment when you try piping it through 'less'.
Re:If Not React, Then What? by quantadev on Sunday December 01, 2024 @12:06PM (#42289375)
You can use React with or without SPAs. Not saying you didn't know that. Just pointing out they're separable.
Re:If Not React, Then What? by quantadev on Sunday December 01, 2024 @12:13PM (#42289412)
You have it exactly backwards. Since React does all the DOM updates automatically, my massive project, with 100s of thousands of TypeScript LOC, has zero DOM calls in it. lol.