1.0.1 • Published 1 year ago

hundred v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

💯 Hundred

Hundred is intended to be a toy block virtual DOM based off of Million.js, and is a proof-of-concept and a learning resource more than a tool you should actually use in production.

Install Hundred

Inside your project directory, run the following command:

npm install hundred

Usage

import { h, block } from 'hundred';

const Button = block(({ number }) => {
  return h('button', null, number);
});

const button = Button({ number: 0 });

button.mount(document.getElementById('root'));

setInterval(() => {
  button.patch(Button({ number: Math.random() }));
}, 100);

License

hundred is MIT-licensed open-source software by Aiden Bai.

1.0.1

1 year ago

1.0.0

1 year ago

0.1.0

2 years ago

0.0.0

7 years ago