Skip to content

serhii-chernenko/vue3-use-now

Repository files navigation

difficulty training chapter tags
1
true
Chapter 7: Challenge Roundup
vue

A Custom useNow Composable

In this challenge, you'll create a custom useNow composable.

Requirements

  1. The composable should NOT accept any arguments
  2. It should return a reactive ref that holds a current Date object
  3. The ref should update every 1 second so as to always represent the current time accurate to the second

screenshot of solution