0.2.3 • Published 10 years ago
x-view v0.2.3
X-View
A JavaScript library like React, but uses Web Components.
Requirements
Supports / Polyfills for:
Object.assignWeakMapCustom ElementsShadow DOM
Installation
$ npm install --save x-viewDocumentations
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);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
10 years ago
0.2.2
10 years ago
0.2.1
11 years ago
0.2.0
11 years ago
0.1.10
11 years ago
0.1.9
11 years ago
0.1.8
11 years ago
0.1.7
11 years ago
0.1.6
11 years ago
0.1.5
11 years ago
0.1.4
11 years ago
0.1.3
11 years ago
0.1.2
11 years ago
0.1.1
11 years ago
0.1.0
11 years ago
0.0.3
11 years ago
0.0.2
11 years ago
0.0.1
11 years ago
0.0.0
11 years ago