0

is this the right way to include a vue component?

new Vue({
  render: (h) => h(App)
})
  .component("v-select", vSelect)
  .$mount("#app");

I tried to use vue-select but seeing a blank screen https://codesandbox.io/s/affectionate-goodall-judt9?file=/src/main.js:164-254

1 Answer 1

1

To register vue component, use this way

import Vue from "vue";
import App from "./App.vue";

import vSelect from "vue-select";
import "vue-select/dist/vue-select.css";

Vue.config.productionTip = false;

//Here register v-select component
Vue.component("v-select", vSelect);

new Vue({
  render: (h) => h(App)
}).$mount("#app");
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.