react.js – Simple watch with React Hooks


Is the hook usage correct in this code fragment?

import React, { useState, useEffect } from "react";

export function Clock() {
  const (date, setDate) = useState(new Date());
  useEffect(() => {
    const interval = setInterval(() => setDate(new Date()), 1000);
    return () => clearInterval(interval);
  }, ());
  return 
{date.toISOString()}
; }