Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

marko js

class {
  onCreate() {
    this.state = { count: 0 };
  }
  increment() {
    this.state.count++;
  }
}
<div>${state.count}</div>
<button on-click("increment")>
  Click me!
</button>
Source by markojs.com #
 
PREVIOUS NEXT
Tagged: #marko #js
ADD COMMENT
Topic
Name
5+8 =