Update readme

This commit is contained in:
Talia 2024-08-01 14:57:13 +02:00
parent e763312f06
commit 8b67abf32f

View file

@ -4,9 +4,14 @@ A functional-friendly helper library for procedural DOM generation and
templating. templating.
```js ```js
import {html} from "skooma.js" import {html} from "skooma/state.js"
``` ```
## Warning
**This branch is in the process of being aggressively refactored and improved.
This readme file may not reflect the latest state of the interface.**
## Overview ## Overview
```js ```js
@ -22,7 +27,7 @@ document.body.append(html.div(
## Interface / Examples ## Interface / Examples
### Basic DOM generation ### Basic DOM generatio
Accessing the `html` proxy with any string key returns a new node generator Accessing the `html` proxy with any string key returns a new node generator
function: function:
@ -89,7 +94,7 @@ text`Hello, ${html.b(user)}!`
## handle ## handle
```js ```js
import {handle} from 'skooma.js' import {handle} from 'skooma/state.js'
``` ```
Since it is common for event handlers to call `preventDefault()`, skooma Since it is common for event handlers to call `preventDefault()`, skooma