Obligatory "front end is a mess" comment. I taught at a bootcamp for 6 months, it was a great experience but when we moved on to react after vanilla JS the amount of incidental complexity was a huge step up, even with create-react-app. Now they push people towards adding a server side framework at the same time, right off the bat? I think there's a real danger with new engineers entering the industry that they have n…
New React docs pretend SPAs don't exist anymore
81–90 of 225 posts
Re: New React docs pretend SPAs don't exist anymore
#82Starting a "new react project" should be basically creating an HTML file, and adding a script tag linking to React the JS library. Why are these developers always trying to obfuscate everything with tons and tons of layers of indirection all the time? You don't need to "bundle" anything and certainly not use some server just to add Javascript to a page (unless it's a matter of CSP of course) and you should certainly…
Re: New React docs pretend SPAs don't exist anymore
#83I don't understand the pivot back to SSR. Tearing down and standing up the entire DOM and page memory between navigations is just unnecessary work. Little things like maintaining scroll position in the page's navigation bar meaningfully improve usability and are only achievable with a SPA-based approach. This doesn't discount the challenges of building SPAs: bundle sizes, performance, etc. can be concerns if not mana…
I think you might be using the term “SSR” in a non-standard way. In the context of JavaScript apps, SSR refers to an initial pre-rendering of the HTML of a SPA page on the first browser page load. Subsequent navigations in that same browser tab would render on the client just like an SPA that doesn’t have SSR. You might be talking about what the JavaScript community has started to call “MPA,” which doesn’t seem to ha…
The various JS frameworks seem to have taken a concept that was common and tried to rebrand it which just adds more confusion
Re: New React docs pretend SPAs don't exist anymore
#84I stopped reading here because the article may have been made by ChatGPT
Re: New React docs pretend SPAs don't exist anymore
#85Starting a "new react project" should be basically creating an HTML file, and adding a script tag linking to React the JS library. Why are these developers always trying to obfuscate everything with tons and tons of layers of indirection all the time? You don't need to "bundle" anything and certainly not use some server just to add Javascript to a page (unless it's a matter of CSP of course) and you should certainly…
If you really need to use html with script tag, go with Vue/alpine
Re: New React docs pretend SPAs don't exist anymore
#86Earlier quoted context omitted.
Unpoly dev is german nobody cares about abd doesnt go on podcasts vs htmx author is american that does marketing well. Same goes for alpine js where the author is “famous” dev. Pretty typical with open source projects tbh. Many of them win thanks to marketing more than anything else.
Don't why you have been downvoted, while there are famous dev outside of the US, american identity and marketting does sell better than the german one.
Plus i think US devs understand how important marketing is more than anybody else.
Re: New React docs pretend SPAs don't exist anymore
#87I don’t want server side react. It’s disappointing to me they’ve gone so hard on server side. It feels like Facebook use it server side so they’ve lost interest in being purely client side.
Re: New React docs pretend SPAs don't exist anymore
#88So after graphql, micro services, nosql and serverless, the SPA + "libs not framework" crowd join the "woooops!" club. Ignoring the noise is really becoming a key skill to survive as a programmer.
Being too eager to dismiss a technology and move on is just as much of a bandwagon-jump as being too eager to adopt it in the first place. The Gartner Hype Cycle[1] has both a 'peak of inflated expectations' and a 'trough of disillusionment'. The thing a lot of tech cynics fail to spot is that both of them are wrong about the long term value of the technology . The 'plateau of productivity' awaits, where graphql, nos…
I keep thinking of the tower of babel.
> God was concerned that humans had blasphemed by building the tower to avoid a second flood so God brought into existence multiple languages. Thus, humans were divided into linguistic groups, unable to understand one another.
see? Now you can be wrong with the rest of us :)
Re: New React docs pretend SPAs don't exist anymore
#89So after graphql, micro services, nosql and serverless, the SPA + "libs not framework" crowd join the "woooops!" club. Ignoring the noise is really becoming a key skill to survive as a programmer.
Honestly, the signal is just to avoid whatever full-time JS developers are getting into.
Re: New React docs pretend SPAs don't exist anymore
#90I feel like the author is just confused that they're not specifically focusing on SPA because whether anyone wants to admit or not, enterprise companies aren't asking for SPA, or mobile apps, they're asking for headless, static websites. It makes sense that React would respond to those market demands.