3 lines
1017 B
HTML
3 lines
1017 B
HTML
<h2 id="quickstart">quickstart</h2><p>1․ Install Hyperapp with npm or Yarn:</p><hr><pre><code class="language-console">npm i hyperapp</code></pre><hr><p>2․ Then with a module bundler like <a href="https://parceljs.org">Parcel</a> or <a href="https://webpack.js.org">Webpack</a> import it in your application and get right down to business.</p><hr><pre><code class="language-js">import { h, app } from "hyperapp"</code></pre><hr><p>3․ Don't want to set up a build step? Import Hyperapp in a <code><script></code> tag as a module. Don't worry; modules are supported in all evergreen, self-updating desktop, and mobile browsers.</p><hr><pre><code class="language-html"><script type="module">
|
||
import { h, app } from "https://unpkg.com/hyperapp"
|
||
</script></code></pre><hr><p>Here's the first example to get you started: a counter that can go up or down. You can try it online <a href="https://codesandbox.io/s/hyperapp-playground-fwjlo">here</a>.</p><hr> |