Sometimes when writing applications you need a piece of data, usually a variable, to be available through your whole code. You can even find yourself needing this data to be accessible through multiple instances of Vue that have been mounted in the page—so is there a “best practice” when dealing with these situations? Let’s take a look.
jQuery used to be a common choice for a lot of applications in the past. However, there are smaller, faster, more feature-rich solutions now. We’ll cover how to migrate from jQuery to Vue 3 a lot of common use cases, such as handling events, forms, API requests, conditional and dynamic content, and more.