Making Hotwire play nice with ViewComponent
13-May-2021 1681
Have you ever wondered if you could use hotwire with view_component instead of partials. If you have, maybe tried and failed, welcome here.By default hotwire is made to work with partials, which is the built in way to extract 'components' in the context of rails based apps. In a certain application I was building I have used view_component (inspired by react) in place of partials because it is a framework for building reusable, testable .
Making Hotwire play nice with ViewComponent #ruby #rubydeveloper #rubyonrails #Making #Hotwire #ViewComponent #hotwire https://rubyonrails.ba/link/making-hotwire-play-nice-with-viewcomponent