Renderless Behavioral Slots in Vue.js

1 · · Sept. 18, 2019, 11:20 p.m.
Let’s go over the renderless slot pattern in Vue and see the problems that it can help solve. Introduced with Vue.js 2.3.0, scoped slots have considerably improved component reusability. For example, the renderless component pattern emerged and solved the problem of providing reusable behavior and pluggable presentation. Here we’ll see how to solve the opposite problem: providing reusable presentation and pluggable behavior. Renderless Components This pattern applies for components that impleme...