diff --git a/docs/api/quick.md b/docs/api/quick.md index 4e6c353..72cfd4c 100644 --- a/docs/api/quick.md +++ b/docs/api/quick.md @@ -38,18 +38,23 @@ Explore the reactive building blocks of SigPro.
$if(cond, then, else?)$for(list, itemFn)$for(src, render, key)$router(routes):id) and auto-cleanup.$mount(node, target).destroy() capabilities.Tag({ attributes }, [children])
-### Attribute & Content Handling
-
-Learn how to bind data to your elements effectively.
+### Special Attributes & Routing
class: "text-red"
- Standard HTML attribute passed as a plain string. No reactivity overhead.
+value: mySignal
+ Automatic sync for Input, Textarea, and Select. Updates the signal on 'input' or 'change'.
const isLoading = $(false);
- disabled: isLoading
- Updates automatically via internal $watch. Only the attribute changes in the DOM.
$router.to('/user/1')
+ Navigate programmatically. Access params via $router.params().id.
const username = $('Me');
- value: username
-
- Automatic Sync: Works out-of-the-box for Input, Textarea, and Checkbox.
- It syncs the element ↔ signal both ways without manual event listeners.
-
ref: (el) => ...
+ Get direct access to the DOM node once it is created.
P({}, () => count())
- Updates the specific text node surgically without ever re-rendering the parent P tag.
onClick: (e) => ...
+ Standard events with automatic removeEventListener on destruction.