Alpine.js for Ruby on Rails Developers: Simplifying Front End Development
alexsinelnikov.blog
alexsinelnikov.blog
For communicating the backend through using an api, or issuing async get/post or form submissions that is done pretty much the same as you would do it using html or javascript.
And Rails has their own flavor of this with Hotwire/Turbo.