Skip to content

Commit e765e23

Browse files
Add missing notes about using SFC syntax (vuejs#1282)
1 parent c98b5a4 commit e765e23

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

src/guide/composition-api-lifecycle-hooks.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Lifecycle Hooks
22

3+
> This section uses [single-file component](single-file-component.html) syntax for code examples
4+
35
> This guide assumes that you have already read the [Composition API Introduction](composition-api-introduction.html) and [Reactivity Fundamentals](reactivity-fundamentals.html). Read that first if you are new to Composition API.
46
57
<VideoLesson href="https://www.vuemastery.com/courses/vue-3-essentials/lifecycle-hooks" title="Learn about how Lifecycle Hooks work with Vue Mastery">Watch a free video about Lifecycle Hooks on Vue Mastery</VideoLesson>

src/guide/composition-api-provide-inject.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Provide / Inject
22

3+
> This section uses [single-file component](single-file-component.html) syntax for code examples
4+
35
> This guide assumes that you have already read [Provide / Inject](component-provide-inject.html), [Composition API Introduction](composition-api-introduction.html), and [Reactivity Fundamentals](reactivity-fundamentals.html).
46
57
We can use [provide / inject](component-provide-inject.html) with the Composition API as well. Both can only be called during [`setup()`](composition-api-setup.html) with a current active instance.

src/guide/reactivity-fundamentals.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Reactivity Fundamentals
22

3+
> This section uses [single-file component](single-file-component.html) syntax for code examples
4+
35
## Declaring Reactive State
46

57
To create a reactive state from a JavaScript object, we can use a `reactive` method:

0 commit comments

Comments
 (0)