JSPM

  • Created
  • Published
  • Downloads 2408
  • Score
    100M100P100Q120232F
  • License MIT

Tiny DOM library

Package Exports

  • redom

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (redom) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

RE:DOM

Make DOM great again!

RE:DOM!

Hello RE:DOM

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

Quick start

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

$ npm install -g redom-cli
$ redom

Installation

npm install redom

Usage (ES2015 import)

import { el, mount } from 'redom';

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

mount(document.body, hello);

Using with commonjs

var redom = require('redom');
var el = redom.el;
var mount = redom.mount;

Oldskool

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

Examples

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

What else can you do with RE:DOM?

Documentation is a bit lacking yet, please check out the source for now: https://github.com/pakastin/redom/tree/master/src

You can also check out FRZR's documentation, which is quite like the old version of RE:DOM now and will probably be deprecated soon.. https://frzr.js.org

License

MIT