Example of usage Higher order components in vue.js
# install dependencies
yarn
# serve with hot reload at localhost:8080
yarn start
# run unit tests
yarn test
# or
yarn test:watch
For a detailed explanation on how things work, check out the guide and docs for vue-loader.