...

/

Composition API

Composition API

Learn about the drawbacks of Options API and how Composition API manages stateful logic.

Composition API can be used in a few different ways to manage and reuse stateful logic. Let’s start with a simple example of tracking scroll position and converting the functionality from Options API to Composition API.

Options API

Let’s start with the tracking scroll position example with ...