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

outdatedDart 1 only

An experimental virtual dom library, which allows mixing DOM elements with components.

example/example.dart

import 'dart:html' as html;

import 'package:domino/domino.dart';
import 'package:domino/html_view.dart';
import 'package:domino/node_helpers.dart';

main() {
  registerHtmlView(html.querySelector('#main'), new SimpleComponent());
}

class SimpleComponent extends Component {
  int counter = 0;

  @override
  build(BuildContext context) {
    return [
      div(content: [
        div(content: 'Counter: $counter'),
        button(content: 'Increment', onClick: _onClick),
      ]),
    ];
  }

  void _onClick(_) {
    counter++;
  }
}
6
likes
0
pub points
48%
popularity

Publisher

verified publisheragilord.com

An experimental virtual dom library, which allows mixing DOM elements with components.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

async_tracker

More

Packages that depend on domino