UNPKG

reak

Version:

Functional Flux on wrapper class about DOM FrameWork

46 lines (41 loc) 1.06 kB
# Reak Functional IO wrapper class about DOM FrameWork This Project was migrated of Dominot. ex: ~~~javascript class MyReak extends this.Reak{ constructor () { super(); this .is({ after: "bye reak", widget: {div: { $: [ {p : { $: "hello reak", css: { fontSize: "1em", width: "62%", textAlign: "center", margin: "auto" } }}, {button: { $: "click me", on: "click" }} ] } } }) .show(); } click (e) { console.log(this); this .off("click") .widget.children[0]["<"]({now: this.after}); } } let myReak = new MyReak(); ~~~