From 5b9b2c2624eb57f3e9c689e9d3a5c343832bcaf2 Mon Sep 17 00:00:00 2001 From: Geoff Doty Date: Sun, 5 May 2024 09:07:17 -0400 Subject: [PATCH] simplified --- README.md | 18 +++++++----------- dist/tagged.min.js | 2 +- dist/tagged.min.js.map | 2 +- src/app.js | 39 +++++++++++++-------------------------- 4 files changed, 22 insertions(+), 39 deletions(-) diff --git a/README.md b/README.md index f97477c..3b69d55 100644 --- a/README.md +++ b/README.md @@ -2,24 +2,23 @@ > Minimal Javascript UI Library -This is an experimental composable ui library that takes ideas from Elm Architecture, but without the doctrine - this is Javascript! +This is an experimental composable ui builder that takes ideas from Elm Architecture, but without the doctrine - this is Javascript! ## Features - No Virtual Dom - No Build System - No Over Engineering -- ~100 lines of code -- Totally inefficient rendering (at scale) +- ~1kb minified +- Totally INEFFICIENT rendering (at scale) ## Overview -the `app` builder takes an `opts` object that expects it to include: +the `app` builder takes an `opts` object that expects: - `state` as initial data `{object}` - `actions` as `{object}` with functions definitions - `view` as `{function}` that returns valid dom - -and a querySelector compatible `selector` to mount the ui. +- `mount` as querySelector compatible `{string}` `app` returns: @@ -30,7 +29,7 @@ and a querySelector compatible `selector` to mount the ui. ```html