When I come across most packages they are written in Options API. What’s the best way to determine how to write it with <script setup>
+ Composition API?
For example:
https://github.com/twickstrom/vue-papa-parse#usage
I installed it and attempted:
import VuePapaParse from 'vue-papa-parse
VuePapaParse.parse(file)
But I get an error:
TypeError: VuePapaParse.parse is not a function