What are Vue 3’s provide and inject APIs, and how do they differ from Vuex?

provide and inject allow dependency injection between ancestor and descendant components, ideal for local state sharing without Vuex. Unlike Vuex’s centralized store, provide/inject is scoped and lightweight, reducing coupling for isolated state needs.