Multi Export Vue.js Single File Components With Proxy Exports
Markus Oberlehne has a good tutorial on how to export Vue single file components with proxy exports.
In one of my previous articles, we examined how we can use JSX in Vue.js to export multiple Vue.js components from a single Single File Component (SFC) .vue file. Just recently I found an even easier solution to this problem.
Although it can be very useful to use JSX for simple UI components, as I described in my article, there are also some drawbacks to this approach. First, JSX doesn’t feel very natural in a Vue.js environment, and second, you lose many of the advantages of Vue.js Single File Components, such as scoped styles.
This post is submitted by one of our members. You may submit a new post here.