heckpoints</code></a> object for which the callback will set the checkpoint (indicated by the hook&#x27;s <code>checkpointsOrCheckpointsId</code> parameter) is always automatically used as a hook dependency for the callback.</p><section class="s2"><h2>Example</h2><p>This example uses the <code>useGoToCallback</code> hook to create an event handler which moves to a checkpoint when the <code>span</code> element is clicked.</p><pre><code><span class="keyword">import</span> React <span class="keyword">from</spa