refui

Explain rEFui retained-mode and signals for building reactive UIs.

85|1|Updated Aug 16, 2023
One-click install
npx skills add https://github.com/SudoMaker/rEFui --skill refui
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: refui
Source: https://github.com/SudoMaker/rEFui/tree/main/skills/refui
Command: npx skills add https://github.com/SudoMaker/rEFui --skill refui

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps developers quickly adopt rEFui's retained-mode with signals, enabling reactive UIs without relying on the library source. It guides you through choosing JSX modes, DOM/HTML renderers, and debugging practices when UI updates lag behind state changes.

Core Features & Use Cases

  • Retained-mode mental model: understand component setup vs rendering and how signals drive incremental updates.
  • JSX and renderer guidance: select automatic vs classic JSX transforms and DOM/HTML renderers for your stack.
  • Directives & macros: apply on:/class:/style:/attr:/prop:/m:* patterns correctly with safe scopes.
  • HMR and debugging: leverage refurbish/refui/hmr workflows and diagnose “UI not updating” problems.
  • Migration patterns: map React/Vue/Solid/Svelte patterns to rEFui idioms for smoother transitions.
  • Real-world example: Migrate a small React button with state to a rEFui button using signals, then compare reactivity.

Quick Start

Initialize a minimal rEFui project with automatic JSX runtime and a DOM renderer, then implement a counter component using signals.

Frequently Asked Questions about refui

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do retained mode signals drive reactive UI updates?

Retained mode signals drive reactive UI updates by establishing a component setup phase that binds state, enabling incremental DOM rendering only when those specific signals change. This model separates initial component setup from continuous rendering.

How do I migrate React or Vue state patterns to a retained mode signals model?

Migrate React or Vue state patterns to a retained mode signals model by mapping existing component state to rEFui signals and applying retained-mode idioms for smoother transitions. A small React button can be directly compared to a rEFui signals implementation.

Should I choose automatic or classic JSX transforms for my renderer?

Choose automatic or classic JSX transforms based on your stack requirements and the selected DOM or HTML renderer. The automatic JSX runtime is recommended for initializing minimal rEFui projects with a DOM renderer.

Why does my UI not update when signals change after migration?

Your UI does not update when signals change after migration due to incorrect directive application or broken retained-mode bindings. Diagnose the UI not updating problem by verifying on:/class:/style:/attr:/prop:/m: patterns and leveraging refurbish/refui/hmr workflows.

How do I apply on and class directives safely in JSX?

Apply on and class directives safely in JSX by using on:/class:/style:/attr:/prop:/m: macro patterns within safe scopes. Correct directive application ensures that signals properly bind to DOM attributes and properties for incremental updates.