s, and it&#39;s updated with the response value from the server now.</p>
<p>Let&#39;s replace the event handler in the component to call the <code>increment</code> function instead of incrementing the <code>count</code> variable directly:</p>
<pre><code class="lang-javascript">var Hello = {
    view: function() {
        return m(&quot;main&quot;, [
            m(&quot;h1&quot;, {class: &quot;title&quot;}, &quot;My first app&quot;),
            m(&quot;button&quot;, {onclick: increment}, count + &quot; clic