3 ms·
Then you might like Rails 7 which defaults to Hotwire for a minimal-JS front-end.
by cutler 4y ago
Then you might like Rails 7 which defaults to Hotwire for a minimal-JS front-end.
- anakaine 4y agoIn simple terms, what does Hotwire mean / provide?
- cutler 4y agoHotwire allows you to handle front-end page/view updates and state from the server instead of relying on an SPA framework. Rails sends the minimal amount of JS to update the page without a full reload and for many use cases it's all you need. When you click a link configured with Hotwire turbolinks intercepts the call, fetches the new content from Rails and strips out everything except the body tag and its contents then uses that, with a sprinkling of JS, to update the page/view.
- anakaine 4y agoThat's sounds pretty good, actually.