reak

0.0.5 • Public • Published

Reak

Functional IO wrapper class about DOM FrameWork This Project was migrated of Dominot.

ex:

class MyReak extends this.Reak{
    constructor () {
        super();
        this
        .is({
            after: "bye reak",
            widget: {div: {
                    $: [
                        {: {
                            $: "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();

Package Sidebar

Install

npm i reak

Weekly Downloads

0

Version

0.0.5

License

GPL-3.0

Unpacked Size

62 kB

Total Files

8

Last publish

Collaborators

  • johnny_shaman