# VDom - Virtual DOM diff/patch

> Virtual DOM diff/patch implementation inspired by
> [ReactJS Reconciliation](http://facebook.github.io/react/docs/reconciliation.html).

## Usage example

```dart
import 'package:vdom/vdom.dart';

main() {
  final a = new VElement('div', 'key A');
  final aHtmlElement = a.render();

  final b = new VElement('div', 'key B');
  b.children = [new VText('text key', 'Text Content')];

  final patch = a.diff(b);

  patch.apply(aHtmlElement);
}
```
# VDom - Virtual DOM diff/patch

> Virtual DOM diff/patch implementation inspired by
> [ReactJS Reconciliation](http://facebook.github.io/react/docs/reconciliation.html).

## Usage example

```dart
import 'package:vdom/vdom.dart';

main() {
  final a = new VElement('div', 'unique_key');
  final aHtmlElement = a.render();

  final b = new VElement('div', 'unique_key');
  b.children = [new VText('text_key', 'Text Content')];

  final patch = a.diff(b);

  patch.apply(aHtmlElement);
}
```
Fix error in readme example
Fix error in readme example
