 When the component is unmounted, the listener is removed from the <a href="/api/relationships/interfaces/relationships/relationships/"><code>Relationships</code></a> object.</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="keyword">import</span> <span class="punctuation">{</span>createRoot<span class="punctuation">}</span> <span class="keyword">from</span> <span class="string">'react-