Skip to content

Update inconsistent naming in step-2 of the tutorial #1593

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 16, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/tutorial/src/step-2/description.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Details on `reactive()` and `ref()` are discussed in <a target="_blank" href="/g

<div class="sfc">

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:
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:

</div>

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

```js{2,5}
setup() {
const state = reactive({ count: 0 })
const counter = reactive({ count: 0 })
const message = ref('Hello World!')
return {
state,
counter,
message
}
}
Expand Down