all repos — h3 @ 9ab7e74645a3a53b3fe5affc1cc832e52b976df5

A tiny, extremely minimalist JavaScript microframework.

docs/md/overview.md

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
## Overview

**H3** is a microframework to build client-side web applications in modern JavaScript.

H3 is also:

* **tiny**, under [700 sloc](https://github.com/h3rald/h3/blob/master/h3.js).
* **bare-bones**, it contains just the bare minimum to create a fully-functional single-page application.
* **modern**, it runs only in modern browsers (latest versions of Chrome, Firefox, Edge & similar).
* **easy** to learn, its API is comprised of only 6 methods and 2 properties.

### I'm sold, where can I get it?

Get it from [here](https://raw.githubusercontent.com/h3rald/h3/master/h3.js) and copy it into your application folder.

### Hello, World!

Here's an example of an extremely minimal SPA created with H3:

```js
import h3 from "./h3.js";
h3.init(() => h3("h1", "Hello, World!"));
```

This will render a `h1` tag within the document body, containing the text `"Hello, World!"`.