All practice tasks

Knowledge Check

Custom hook evidence

While reviewing React hooks effects, several forms repeat online-status logic. Which action fixes it, and which check proves it worked?

Answer options

  • A. Verify each caller owns its hook state
  • B. Include the room identifier dependency
  • C. Return a listener cleanup function
  • D. Extract the logic into a custom hook

What this task practices

Custom hook evidence is a knowledge check interview exercise that trains prompt interpretation, explicit assumptions, a concrete response, and a clear explanation of tradeoffs. The catalog marks it as hard difficulty. It focuses on React Hooks Effects, Custom Hook. The signed-in workspace provides the tools for the round and evaluates the attempt against task-specific criteria. Reference solutions, hidden checks, evaluator instructions, and candidate work remain private.

Sign in to startThe workspace and evaluation open after sign in.