Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> In other words is there an elegant way to build a complex SPA with vanilla JS

Svelte and SolidJS. They add a compilation step that turns fully abstracted SPA framework code into vanilla JS doing efficient DOM operations. If you wanted something even closer to the speed of C, you could imagine a framework using WASM to generate arbitrarily complex raw HTML and add it to the DOM in a single operation. This would basically match the speed of plain old SSR, with only the limited overhead of running WASM on the client.



Thanks! Solid looks quite nice, looking at the docs it is like React but by making state getting a function, and tracking deps automatically, you change the perspective so that you don't need multiple renders (at least in the code you write, not sure about under the hood).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: