s example creates a Provider context into which a default Checkpoint object is provided. A component within it then uses the <code>useCheckpoints</code> hook to get a reference to the <a href="/api/checkpoints/interfaces/checkpoints/checkpoints/"><code>Checkpoints</code></a> object again, without the need to have it passed as a prop.</p><pre><code><span class="keyword">import</span> React <span class="keyword">from</span> <span class="string">'react'</span><span class="punctuation">;</span>
<span class="key