I\'m using a my-link component to wrap an anchor tag on demand around various items. For that purpose a custom render method is used - however the
my-link
render
It's actually very simple to do this without needing to use any private methods.
A VNode which just renders text has all properties undefined, expect for text.
VNode
So you can just
return { text: 'my text' };
If you're using TypeScript, you may need to assert it is a VNode.