Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

vue create component

// Create Vue application
const app = Vue.createApp(...)

// Define a new component called todo-item
app.component('todo-item', {
  template: `<li>This is a todo</li>`
})

// Mount Vue application
app.mount(...)
Source by v3.vuejs.org #
 
PREVIOUS NEXT
Tagged: #vue #create #component
ADD COMMENT
Topic
Name
6+9 =