LoginSignup
6
4

More than 5 years have passed since last update.

hyperapp使ってみた

Posted at

参考

ブラウザ

  • IE11 : 非対応
  • Edge : 対応
  • Chrome : 対応

使い方

ダウンロードも可
wget -O hyperapp.js https://unpkg.com/hyperapp
wget -O hyperx.js https://wzrd.in/standalone/hyperx
index.html
<body>
  <!--<script src="https://unpkg.com/hyperapp"></script>-->
  <!--<script src="https://wzrd.in/standalone/hyperx"></script>-->
  <script src="hyperapp.js"></script>
  <script src="hyperx.js"></script>
  <script>

  const { h, app } = hyperapp
  const html = hyperx(h)

  app({
    model: "Hi.",
    view: model => html`<h1>${model}</h1>`
  })

  </script>
</body>
6
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
4