State Management
#121
-
Basic usage? |
Beta Was this translation helpful? Give feedback.
Answered by
hixb
Jul 12, 2022
Replies: 1 comment
-
` <script setup> const counter = useState('counter', () => Math.round(Math.random() * 1000)) </script>
Counter: {{ counter }}
+
-
`
|
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 counter = useState('counter', () => Math.round(Math.random() * 1000)) </script>