hundred
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

💯 Hundred Code Size NPM Version

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.

Readme

Keywords

none

Package Sidebar

Install

npm i hundred

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

23.9 kB

Total Files

11

Last publish

Collaborators

  • abai