News for hackers. Stuff that matters.
Re:Build your own web framework by tjpnz on Friday July 29, 2022 @11:16PM (#32283980)
I've spent the previous month working with React for the first time and I find myself longing for the simpler days. There's absolutely no reason why it was needed for this project, much less for it needing to be a SPA. The codebase is bloated, the dev environment is slow and unwieldy (even on my M1 Max) and just doing simple things takes longer. The only small saving grace is we're using TypeScript.

If we're ever in a position to rewrite it I'll be pushing hard for Rails or Django with simple server rendered HTML. Anything less would be doing us and our internal customers a disservice in terms of how quickly we can deliver features.

Re:Build your own web framework by agumonkey on Friday July 29, 2022 @11:46PM (#32284105)
I'm not pro-react but I find it much saner than rails/django. My brain can't wrap writing server side blend of js and html, the component way makes code pretty clean right away, and live reload is faster in vue/react than django (afaik). Not saying that the js world is great by any mean, or that in your case simple html templates would do, but most of the time I rapidly feel the need to have react/vue to make things clearer or safer (and prettier).
Re:Build your own web framework by jjdeveloper on Saturday July 30, 2022 @06:22AM (#32285633)
Have you tried Astro. Lets you get back to basic html, css and it’s not a SPA but an old school MPA. Lets you use react or similar for any interactive component but without SPA complexity. Worth a look but always depends on what your needs are.