Using renderless components to wrap forms
Published 2 weeks ago
When I started working on this site, I was a little worried about how to break up the Blade and Vue templates. I love Vue and feel most comfortable building views with Vue, but the pages on this site don’t need AJAX calls and SPA-like functionality. I could totally go down that route, but it seemed simple and more user-friendly to just generate the views server-side with Blade templates and pass along props to any Vue components I might have as per Caleb Porzio’s suggestion.
Definitely not perfect, but it’s an interesting use case for scoped slots and renderless components.