Skip to content

Commit ddda91c

Browse files
authored
Update description.md (#1593)
1 parent 10184f8 commit ddda91c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/tutorial/src/step-2/description.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Details on `reactive()` and `ref()` are discussed in <a target="_blank" href="/g
3838

3939
<div class="sfc">
4040

41-
Reactive state declared in the component's `<script setup>` block can be used directly in the template. This is how we can render dynamic text based on the value of the `state` object and `message` ref, using mustaches syntax:
41+
Reactive state declared in the component's `<script setup>` block can be used directly in the template. This is how we can render dynamic text based on the value of the `counter` object and `message` ref, using mustaches syntax:
4242

4343
</div>
4444

@@ -48,10 +48,10 @@ The object being passed to `createApp()` is a Vue component. A component's state
4848

4949
```js{2,5}
5050
setup() {
51-
const state = reactive({ count: 0 })
51+
const counter = reactive({ count: 0 })
5252
const message = ref('Hello World!')
5353
return {
54-
state,
54+
counter,
5555
message
5656
}
5757
}

0 commit comments

Comments
 (0)