Re:A whole website in a single JavaScript file
by skybrian on Wednesday April 06, 2022 @06:33PM
(#30938305)
Yes, everything old is new again. I just browsed the docs, but it seems it's not so different, other than it's automatically run on servers all over the world. Temporarily, this is for free. Also, it automatically updates after pushing a commit to GitHub, which seems nice.
Re:A whole website in a single JavaScript file
by xcambar on Wednesday April 06, 2022 @06:35PM
(#30938320)
> Also, it automatically updates after pushing a commit to GitHub, which seems nice.
also not new, but you know that already :)
Re:A whole website in a single JavaScript file
by xcambar on Wednesday April 06, 2022 @06:33PM
(#30938304)
it is not different.
CGI is replaced by JS
Apache/nginx is replaced by CDN
web server is replaced by edge nodes (aka, glorified runtimes automagically spread across many endpoints)
Re:A whole website in a single JavaScript file
by DangitBobby on Wednesday April 06, 2022 @11:20PM
(#30940280)
It's written in js/React so you can share frontend and backend code and write the entire site in one language or even using the exact same components for server side and client side rendering. This is a boon for development. Ignore the nay-sayers.
Re:A whole website in a single JavaScript file
by brundolf on Wednesday April 06, 2022 @11:55PM
(#30940450)
The demo doesn't use React, only JSX
Re:A whole website in a single JavaScript file
by DangitBobby on Thursday April 07, 2022 @10:17AM
(#30944742)
The import { h } made me think it was preact, but I guess it's not even that.
Not a web developer. How is this different from CGI or a regular web server? This an honest question - I don't understand the significance.