Redom

一个轻便的创建用户接口的 JavaScript 库,测试覆盖率100%

暂无中文翻译,

js-semistandard-style Build Status npm npm Twitter Follow

RE:DOM

Develop web apps with 100 % JavaScript and web standards. Size less than 2 KB gzipped.

RE:DOM

https://redom.js.org

NEW! Screencasts

Introduction

API

Slack

Release history

https://github.com/pakastin/redom/releases

Hello RE:DOM

http://codepen.io/pakastin/pen/RGwoRg

Performance

Quick start

Initialize RE:DOM projects easily with RE:DOM project generator

Installing

npm install redom

Usage (ES2015 import)

import { el, mount } from 'redom';

const hello = el('h1', 'Hello world!');

mount(document.body, hello);

Using with commonjs

const { el, mount } = require('redom');

Oldskool

<!DOCTYPE html>
<html>
  <body>
    <script src="https://redom.js.org/redom.min.js"></script>
    <script>
      var el = redom.el;
      var mount = redom.mount;

      // create HTML element
      var hello = el('h1', 'Hello world!');

      // mount to DOM
      mount(document.body, hello);
    </script>
  </body>
</html>

Examples

Check out some examples on https://redom.js.org

State handling example

https://pakastin.github.io/redom-state

Browser support

Short answer

IE 9 and up + all modern browsers

Long answer

If you don't use el.extend, svg.extend or list.extend it'll work with <IE9 as well.

Share the love with Stickermule stickers! ❤️

https://www.stickermule.com/marketplace/15681-re-dom

You can get $10 off from your order with this link

License

MIT

redom 暂时没有中文说明

我们期待您参与进来翻译和完善

该操作会锁定该库2天以防止其它用户重复翻译,然后会自动释放

讨论区