title: Increment and decrement button function in next.js typescript
body: <p>I am new to typescript and want to create increment and decrement button function in next.js project being written in typescript.</p>
  <pre><code>export default function Home() { 
    return ( 
      &lt;div className={styles.container}&gt; 
         &lt;form className={`wrapper ${styles.wrapper}`}&gt;
            &lt;div className={styles.headWrapper}&gt;
              &lt;h2&gt;Скорость&lt;/h2&gt;
              &lt;input type=&quot;number&quot; id=&quot;input&quot; min='1'/&gt;
              &lt;h3&gt;сек.&lt;/h3&gt;
            &lt;/div&gt;
            &lt;div className={styles.controlBtns}&gt;
              &lt;button id=&quot;minus&quot;&gt;-&lt;/button&gt;
              &lt;button id=&quot;plus&quot;&gt;+&lt;/button&gt;
            &lt;/div&gt;
         &lt;/form&gt;
      &lt;/div&gt; 
    )
  }
  </code></pre>