class="o">=&gt;</span> <span class="nx">state</span><span class="p">)</span> <span class="kd">as </span><span class="nx">State</span>

  <span class="nx">React</span><span class="p">.</span><span class="nf">useEffect</span><span class="p">(</span><span class="nx">onComponentMountEffect</span><span class="p">,</span> <span class="p">[]</span> <span class="cm">/* componentDidMount */</span><span class="p">)</span>

  <span class="k">return</span> <span class="nf">render</span><span class="p">()</span>

  <spa