Making Hotwire play nice with ViewComponent

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 #hotwire https://rubyonrails.ba/single/making-hotwire-play-nice-with-viewcomponent

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles