Quick Start
1. Write HTML
Section titled “1. Write HTML”Mark your interactive elements with data-lume attributes:
2. Define a Component
Section titled “2. Define a Component”Create a TypeScript file with your component logic:
3. Mount the App
Section titled “3. Mount the App”Register the component and mount:
That’s it! Lume will find all elements with data-lume="counter" and attach the reactive logic.
What Just Happened?
Section titled “What Just Happened?”defineComponentwraps your factory function into a component definitioncreateLume()creates an app instance with an event bus.component("counter", counter)registers the component under the name"counter".mount()scans the DOM for[data-lume="counter"]elements and initializes each one
Each component instance gets its own signals, effects, and event listeners — all automatically cleaned up when .unmount() is called.
Next Steps
Section titled “Next Steps”- Learn about Components in detail
- Understand Signals & Effects
- See the full API Reference