ect your solution establishing context is done where you want to make calls to the API. The examples demonstrate doing so in the onInit method as a local variable but this could also be done to a private variable or passed into a service.</p>
<blockquote>
<p>Note if you are going to use both the @pnp/sp and @pnp/graph packages in SPFx you will need to alias the SPFx behavior import, please see the <a href="#using-both-pnpsp-and-pnpgraph-in-spfx">section</a> below for more details.</p>
</blockquote>
<h3 id="