Have ideas to improve npm?Join in the discussion! »

    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();

    Install

    npm i reak

    DownloadsWeekly Downloads

    3

    Version

    0.0.5

    License

    GPL-3.0

    Unpacked Size

    62 kB

    Total Files

    8

    Last publish

    Collaborators

    • avatar