You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Content]: Add a concrete DOM-binding example to fine-grained reactivity #1637
📋 Description of content that is out-of-date or incorrect
The introduction explains that Solid updates a targeted attribute instead of re-executing an entire component, but the page does not currently demonstrate a DOM-attribute binding.
The first examples introduce createSignal and createEffect, then move into constructing a reactive system from scratch. A short JSX example after “Understanding signals” would connect the signal getter to the targeted-DOM-update claim made in the introduction.
I propose adding the following subsection:
Using signals in DOM bindings
Reading a signal in JSX creates a reactive connection between the signal and that part of the DOM.
Solid runs ToggleButton once to create the button. The reads of pressed() create reactive bindings for the aria-pressed attribute and text node. When the signal changes, Solid updates those DOM targets without re-running the component function.
Make the page’s “targeted attribute” statement concrete.
Show how signal reads in JSX participate in tracking.
Demonstrate an accessible state attribute.
Provide a concise framework comparison.
Affiliation disclosure
I maintain FrontendAtlas, and the optional Vue comparison link points to content I maintain.
I included it because that page explains Vue’s compilation, dependency-tracking, and attribute-patching path. The Solid example remains useful without this link, and I am happy for the link or the entire comparison note to be omitted if third-party comparisons are outside the page’s scope.
🖥️ Reproduction in StackBlitz (if reporting incorrect content or code samples)
Not applicable; this is a proposed explanatory example rather than a report of incorrect runtime behavior.
Activity