﻿#Virtual nodes ( plug-ins )

This folder contains virtual nodes you can use to develop your own nodes. In fact both the virtual  `Text` and  `Comment` node are  
plug-ins. To introduce such as virtual node, you can use one of the mentioned nodes as a starting point. The only requirement is 
that any new virtual node needs to include following functions:

* `render()`
* ` patch()`
* `create()`

Later on you can access your new virtual node like this:

```javascript

 new myVirtualNode("hello!");

```
All created nodes, are sharing the main algorithm for patching / diffing. But you can modify it after your own needs.
OR you can create a virtual node equal to the `Element` node.  

Handy if you want to create your own `Fragment node`. All you have to do is to set the content using `innerHTML` on `render()` and 
forwarding on `patch()` the created `<div>` to the new virtual node.


