Skip to content

Commit eb187c3

Browse files
authored
fix(0040-script-setup): fixed incorrect code (#371)
1 parent 4896b90 commit eb187c3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

active-rfcs/0040-script-setup.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,9 @@ In such cases, a normal `<script>` block can be used alongside `<script setup>`:
410410
</script>
411411

412412
<script setup>
413-
let count = 0
413+
import { ref } from 'vue'
414+
415+
const count = ref(0)
414416
</script>
415417
```
416418

0 commit comments

Comments
 (0)