News for hackers. Stuff that matters.
Re:RFC: Adopt a modern JavaScript framework for use with Med... by DanielBMarkham on Thursday March 19, 2020 @07:07AM (#22626353)
Apologies, I a bit confused. SPA stands for Single-Page Application, does it not? So if you have a single page that works as an application, it is a SPA, no?

I understand the desire to use webkit, Typescript, and so forth to develop modern apps, I'm just confused at why Vue in a stand alone page delivered by ftp or usb drive isn't a "full" SPA

Re:RFC: Adopt a modern JavaScript framework for use with Med... by oefrha on Thursday March 19, 2020 @07:15AM (#22626383)
You can mix and match traditional server-rendered content and JS framework (in this case Vue)-rendered components on the same page (not considering SSR here). Going full SPA means using the latter exclusively.
Re:RFC: Adopt a modern JavaScript framework for use with Med... by frosted-flakes on Thursday March 19, 2020 @07:26AM (#22626449)
You can easily do that with React too. In fact, that's how Facebook first used it, using it for just the chatbox (or something) with the rest of the page as it was.
Re:RFC: Adopt a modern JavaScript framework for use with Med... by manigandham on Thursday March 19, 2020 @08:10AM (#22626686)
React with JSX means you can easily mount a component into an element, but you can't easily add interactivity to all of the existing HTML on the page as delivered by the server.
Re:RFC: Adopt a modern JavaScript framework for use with Med... by DanielBMarkham on Thursday March 19, 2020 @07:45AM (#22626552)
Got it. Thanks. We have several content-delivery pipelines at work. It had been so long since I used server-side dynamic content creation that it had slipped my mind.