<span class="punctuation">(</span>app<span class="punctuation">.</span>innerHTML<span class="punctuation">)</span><span class="punctuation">;</span>
<span class="comment">// -> '&lt;span>{"fido":{"color":"walnut","species":"dog"}}&lt;/span>'</span>
</code></pre><p>When the component is unmounted, the listener will be automatically removed. This means you can use these hooks without having to worry too much about the lifecycle of how your component interacts with the <a href="/api/the-essentials/creating-sto