码迷,mamicode.com
首页 > 移动开发 > 详细

[Hyperapp] Interact with the State Object through Hyperapp Action functions

时间:2018-02-07 19:51:34      阅读:261      评论:0      收藏:0      [点我收藏+]

标签:work   rac   enc   .com   link   height   int   page   mes   

Hyperapp is an ultra lightweight (1kb), minimal, functional, JavaScript library for building UIs. It comes with a VDOM engine and state management without any dependencies. In this lesson, we build a simple counter app. We include the Hyperapp library using the Unpkg link: https://unpkg.com/hyperapp and then attach it to our page on the window.main global.

To build a counter, we only need to add a bit of state and a couple actions to our application to get it to work.

 

 

[Hyperapp] Interact with the State Object through Hyperapp Action functions

标签:work   rac   enc   .com   link   height   int   page   mes   

原文地址:https://www.cnblogs.com/Answer1215/p/8427447.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!