Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tsaidavid/virtual-dom-hash
Experiments with my own virtual DOM and hashing
https://github.com/tsaidavid/virtual-dom-hash
crypto dom hashing javascript vdom virtual-dom
Last synced: about 2 months ago
JSON representation
Experiments with my own virtual DOM and hashing
- Host: GitHub
- URL: https://github.com/tsaidavid/virtual-dom-hash
- Owner: tsaiDavid
- License: mit
- Created: 2018-06-23T00:00:42.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-06-23T21:07:02.000Z (over 6 years ago)
- Last Synced: 2024-10-30T05:06:01.074Z (3 months ago)
- Topics: crypto, dom, hashing, javascript, vdom, virtual-dom
- Language: TypeScript
- Homepage:
- Size: 80.1 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# virtual-dom-hash
## Introduction
> *This experiment is currently a work in progress!*The *virtual DOM* (VDOM) is a powerful concept first made popular and widespread thanks to [React](https://reactjs.org/docs/faq-internals.html).
While most implementations of the VDOM focus on performant reconciliation, I wanted to explore some more novel ways of diffing two virtual trees - being inspired by hash chains, Merkle trees, etc.
Currently, *diffing* the two virtual trees involves checking their respective hashes, which is the result of hashing a corresponding VNode (and its children).
## Usage
**Requirements**
- node 8+
- yarn**Installation**
```sh
$ yarn
```**Development**
```sh
$ yarn dev
```
This runs a `parcel` server - with content being served up on `localhost:1234`.Valid commands to `parcel` may be passed through.
- *Example:*
- `yarn dev --open`
- Runs development server and then opens in browser for you## Docs
### VNode
```javascript
v(tag, attr, children)
```