A nice way to pass along all scoped slots to a component.
We can pass all props from the source component to target using this code -
|
|
Found this in this StackOverflow post.
Why do this?
You probably would do this when you have a component that is collating other components to get things done. The source component would then have to proxy what it received to the target components so that any conditional rendering/processing can happen based on inputs.