0.0.5 • Published 6 years ago

reak v0.0.5

Weekly downloads
3
License
GPL-3.0
Repository
github
Last release
6 years ago

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: {
                    $: [
                        {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();