Problem Description

Start a timer in useEffect and clean it up on unmount.

Input Format

No input.

Output Format

Render a React component.

Constraints

Use setInterval and return a cleanup function.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next