Skip to content

Vue Composition API Migration Guide

Mike Lyttle edited this page May 18, 2023 · 3 revisions

Introduction

The <template> section in most components shouldn't need to change at all.

The <script lang="ts"> block will need to change to <script setup lang="ts">. The examples below should cover how to convert the various items within.

For suggestions on code organization, see Suggested Script Structure.

Examples

Essential

Supplementary

Incomplete

Documentation

Clone this wiki locally