Data Fetching
#120
-
useFetch |
Beta Was this translation helpful? Give feedback.
Answered by
hixb
Jul 12, 2022
Replies: 1 comment
-
` <script setup> const { data: count } = await useFetch('/api/count') </script> Page visits: {{ count }} ` |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
xiao-ice
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
`
<script setup> const { data: count } = await useFetch('/api/count') </script> Page visits: {{ count }} `