In this lesson, we use the useState
composable from Nuxt to define reactive state that’s shared across multiple components. We also move the call of useState to it’s own file where we can type the shared reactive data and use it via an auto imported composable.
Links