How to add vanilla .js to a custom Vue component
I'm trying to add a simple date-picker to a custom vue component. I'm not using webpack so I want to avoid ready made .vue components and I rather understand how to add simple javascript to vue. I'm following this official vue tutorial I've also seen this codepen but I can't manage to make the date picker appear. This is my jsfiddle : Html: <div class="app"> <datepicker id='date-elem'></datepicker> </div> app.js: Vue.component('date-picker', { extends: Flatpickr, mounted () { this.Flatpickr(date-elem, {})} }) How can I easily integrate vanilla js in a Vue component without the need of .vue