0.2.3 • Published 9 years ago

x-view v0.2.3

Weekly downloads
20
License
MIT
Repository
github
Last release
9 years ago

X-View

npm npm

A JavaScript library like React, but uses Web Components.

Requirements

Supports / Polyfills for:

  • Object.assign
  • WeakMap
  • Custom Elements
  • Shadow DOM

Installation

$ npm install --save x-view

Documentations

Example

<x-button></x-button>
var x = require("x-view");

var Button = x.createClass({
  render: function() {
    return x.createElement("button", {
      type: "button"
    }, ["Hello!"]);
  }
});

x.register("x-button", Button);

More examples...

JSX

/** @jsx x.jsx */

var vtree = (<div class="box">
  <x-button />
</div>);

Output:

/** @jsx x.jsx */

"use strict";

var vtree = x.jsx(
  "div",
  { "class": "box" },
  x.jsx("x-button", null)
);

Built-in Tags

  • <x-raw html="..."></x-raw>

License

MIT License

0.2.3

9 years ago

0.2.2

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.10

10 years ago

0.1.9

10 years ago

0.1.8

10 years ago

0.1.7

10 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago

0.0.0

10 years ago