News for hackers. Stuff that matters.

wirtsi

Re:You don't need a JavaScript framework to build websites on Monday January 20, 2025 @08:35AM (#42768570)
It has been part of the Ruby on Rails framework for at least 10 years (called TurboLinks back then) and is used on eg. Gitlab.com
Re:You don't need a JavaScript framework to build websites on Monday January 20, 2025 @08:28AM (#42768505)
AstroJS is moving in a similar direction as Velocity but already clocks in at 60 dependencies in the create-astro repo. We tried to keep things as minimal as possible.

And no, we are not sending anything around with websockets. It's full server-side HTML generation, hotwire takes care of doing delta updates to the existing HTML

Re:You don't need a JavaScript framework to build websites on Monday January 20, 2025 @08:22AM (#42768458)
The advantage of JSX & TSX used together is that you know exactly what data goes into your component. In larger projects this is massive improvement over just having "some" data that you access in your HTML templates.

From my perspective, Typescript in combination with JSX is the best thing to have come out of React, any component in a larger project should have good typing to avoid problems down the road.

Re:You don't need a JavaScript framework to build websites on Monday January 20, 2025 @07:34AM (#42768047)
Velocity Core is a streamlined server-side framework that combines four proven technologies—Fastify, TypeScript, JSX, and Hotwire—to offer a fast, efficient way to build dynamic websites. It provides an alternative to the heavyweight, client-side-driven frameworks like Next.js, focusing instead on delivering HTML directly from the server with minimal overhead - but at the same time having a wonderful development experience
Re:HTML Web Components: An Example on Friday November 17, 2023 @10:51AM (#38305213)
The article really misses out the full power of Web Components <slots> ... that's how you would inject plain html tags into them