3 ms·
That's a basic example which doesn't address the topics discussed in the article at all. The same is just as easy in Vue, even with identical property names if
by Etheryte 7y ago
That's a basic example which doesn't address the topics discussed in the article at all. The same is just as easy in Vue, even with identical property names if you like.
<link-list :render-link="(props) => ..." />
The whole idea of renderless is to move beyond this very limited and crude approach for library code where you might need to override only small bits of the logic or all of the logic, depending on your use case. At the moment I can't help but feel you've missed the core ideas of the article and we're discussing completely different points.
- ng12 7y agoWhy would you want to use slots, then? It's just extra steps for the same functionality. > The whole idea of renderless is to move beyond this very limited and crude approach for library code where you might need to override only small bits of the logic or all of the logic, depending on your use case Not at all. For example, react-select does this super seamlessly: https://react-select.com/components https://react-select.com/components I guess what I'm trying to say is I don't understand why it seems so complicated in Vue.