Redom Versions Save

Tiny (2 KB) turboboosted JavaScript library for creating user interfaces.

v4.0.0

5 months ago
  • Tree shaking finally enabled! (as npm module)
  • viewFactory added:
import { list, viewFactory } from 'redom';

class A {
  constructor () {
    this.el = el('a');
  }
  update () {
    ...
  }
}
class B {
  constructor () {
    this.el = el('b');
  }
  update () {
    ...
  }
}

const items = list('items', viewFactory({ a: A, b: B }, 'type'), 'id');

items.update([{ id: 1, type: 'a' }, { id: 2, type: 'b' }]);

––>

<items>
  <a></a>
  <b></b>
</items>

v3.28.0

1 year ago
  • Fix lifecycle events when mounting with replace option #339 (patch)
  • Update dependencies (minor)

v3.27.3

2 years ago

#439

v3.26.0

4 years ago

Type issue fixed, thank you @flery and @joona!

v3.24.0

4 years ago
  • Fix for #161

v3.21.2

4 years ago

v3.21.1

4 years ago
  • #155

v3.22.0

4 years ago
  • #156