Skip to content

Commit 8f9e959

Browse files
committed
ensure script setup recommendation can be seen when linked from api page
1 parent f4ff204 commit 8f9e959

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/api/composition-api-setup.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# Composition API: setup() {#composition-api-setup}
22

3-
:::info Note
4-
This page documents the usage of the `setup` component option. If you are using Composition API with Single-File Components, [`<script setup>`](/api/sfc-script-setup.html) is recommended for a more succinct and ergonomic syntax.
5-
:::
3+
## Basic Usage {#basic-usage}
64

75
The `setup()` hook serves as the entry point for Composition API usage in components in the following cases:
86

97
1. Using Composition API without a build step;
108
2. Integrating with Composition-API-based code in an Options API component.
119

12-
## Basic Usage {#basic-usage}
10+
:::info Note
11+
If you are using Composition API with Single-File Components, [`<script setup>`](/api/sfc-script-setup.html) is strongly recommended for a more succinct and ergonomic syntax.
12+
:::
1313

1414
We can declare reactive state using [Reactivity APIs](./reactivity-core.html) and expose them to the template by returning an object from `setup()`. The properties on the returned object will also be made available on the component instance (if other options are used):
1515

0 commit comments

Comments
 (0)