Алексей Мохнаткин
dizzymohnatkin@gmail.com
export default (WrappedComponent) => { return { name: 'HigherOrder', render(h) { return h(WrappedComponent, { attrs: this.$attrs, props: this.$props, on: this.$listeners, slots: this.$slots, }, this.$slots.default); }, }; }
Не все так просто
https://github.com/alexeyMohnatkin/vue-hoc-example
https://github.com/vuejs/vue/issues/6201
https://ru.vuejs.org/v2/guide/render-function.html
By dizzy mohnatkin