0.2.3 • Published 8 years ago

x-view v0.2.3

Weekly downloads
20
License
MIT
Repository
github
Last release
8 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

8 years ago

0.2.2

8 years ago

0.2.1

9 years ago

0.2.0

9 years ago

0.1.10

9 years ago

0.1.9

9 years ago

0.1.8

9 years ago

0.1.7

9 years ago

0.1.6

9 years ago

0.1.5

9 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago

0.0.0

9 years ago