Simple counter composable with initial value parameter. Allows creating a counter with a custom starting value.
const myCounter = useSimpleCounter(10)myCounter.value // Returns 10 Copy
const myCounter = useSimpleCounter(10)myCounter.value // Returns 10
Initial value for the counter
Reactive counter initialized to the provided value
Simple counter composable with initial value parameter. Allows creating a counter with a custom starting value.
Example