domino 0.6.0

Dart native js
Flutter Android iOS web

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

Domino #

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

Main features:

  • Virtual DOM nodes and stateful components can be mixed.
  • Supports server-side rendering.

Usage #

A simple usage example:

import 'dart:html' as html;

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

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

class SimpleComponent extends Component {
  int counter = 0;

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

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

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

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

istvan.soos@gmail.com

License

BSD (LICENSE)

Dependencies

async_tracker, meta

More

Packages that depend on domino