domino 0.8.2 copy "domino: ^0.8.2" to clipboard
domino: ^0.8.2 copied to clipboard

outdated

An incremental DOM library, with support for virtual DOM and components.

example/example.dart

import 'dart:html';

import 'package:domino/browser.dart';

void main() {
  registerView(root: document.getElementById('root')!, builderFn: _App().build);
}

class _App {
  int _counter = 0;

  void build(DomBuilder<Element, Event> b) {
    b.open(
      'button',
      id: 'app-button',
      events: {
        'click': (e) {
          _counter++;
          e.view.invalidate();
        },
      },
    );
    b.text('Click');
    b.close();

    b.open('div', id: 'app-count');
    b.text('Counter: $_counter');
    b.close();
  }
}
6
likes
0
pub points
48%
popularity

Publisher

verified publisheragilord.com

An incremental DOM library, with support for virtual DOM and components.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on domino