mercury

A truly modular frontend framework

npm install mercury
21 downloads in the last day
60 downloads in the last week
146 downloads in the last month

mercury

A truly modular frontend anti framework

To understand what I mean by anti framework just read the source

Example

var mercury = require("mercury")
var h = mercury.h

var events = mercury.input(["click"])
var clickCount = mercury.value(0)

events.clicks(function () {
    clickCount.set(clickCount() + 1)
})

function render(clickCount) {
    return h("div", [
        "The state ", h("code", "clickCount"), " has value: ",
        clickCount + ".",
        h("input", { type: "button", value: "Click me!",
            "data-click": mercury.event(events.clicks) })
    ])
}

mercury.app(document.body, clickCount, render)

TodoMVC

Check out TODOMVC implementation

Installation

npm install mercury

Contributors

  • Raynos

MIT Licenced

npm loves you