In the SQL query manager I built, dragging a file over the drop zone changes its border. The list of selected files has a different rule. It appears when there are files to show and loading has finished. Both fit naturally in JSX. Only the border needs to react when the pointer crosses the edge of the drop zone.1
I see UI frameworks converge on the idea that a screen can be described by composing components from their current inputs. For the interactive web UIs I build, I think JSX is close to the optimal way to express that idea. Small components take explicit props, compose into a tree, and have a mature ecosystem around them. Where I see room to improve is what happens after a value changes. On a screen with many independently changing values, signals let each part follow the data it actually uses.23
Is a signal just another name for setState?
On June 13 I searched for “setstate and signal are same?” In an r/angular thread I opened that morning, Nani_kutty put Angular’s name.set(...) next to React’s setName(...). Both examples changed a name. What helped me tell the models apart was asking what I could read on the very next line.4
In React function components, useState(0) gives me the count for this render and a setter. Solid’s createSignal(0) also gives me a pair, but its first item is a function I call to read the current count. The two setters play similar roles. A single click shows where the models diverge.53
| Start at zero and click once | React with useState | Solid with createSignal |
|---|---|---|
| Write the new count | setCount(n => n + 1) | setCount(n => n + 1) |
| Read it on the next line of that click handler | count is still 0, the snapshot this handler captured. | count() returns 1, the signal’s current value. |
| Show the new count | React runs the counter component again. Its JSX now reads count as 1. | The JSX binding that reads count() updates its text. The counter’s setup function can stay out of the update. |
A separate r/reactjs thread illustrates the rendering difference. In ethansidentifiable’s two counters, a log at the top of the component runs again on a click in React. In Solid it runs at setup, yet the number on the button still changes. Both buttons reach one. The log tells you which code ran to get there.6
What if the count stays still?
Arek Nawo gave the counter a second value, someData, which a timer changes every second. Only clicks change count, and only count appears on screen. He used JSX even in the Vue version, so I could follow the same two updates through all three implementations.7
| Framework | The timer changes someData | A click changes count |
|---|---|---|
| React | Updating local state runs the component function again. The count text stays the same. | The component function runs again and React updates the count text. |
| Vue 3 | The render function never reads someData.value, so the timer leaves it alone. | Vue reruns the render function returned by setup() and patches the text. setup() itself ran once at mount. |
| Solid | No JSX binding reads someData(), so the timer causes no view update. | The binding that reads count() updates the text. The component function ran once at mount. |
In the React version I could keep the timer’s value in a useRef if I only needed it in an event handler. Vue and Solid both discover dependencies from reads, yet a click reaches a different unit of work in each. That distinction helped me see the point of Vue Vapor. Vue already knew the toolbar depended on the count. Vapor explored compiling that dependency into a direct text update, the granularity I wanted inside a reusable toolbar.78
What makes the file list appear?
In my first file-import screen on June 22, local signals held the files, parsed queries, and loading flag.1 A store would let me track edits to individual fields in a nested query, and Context would let several descendants share the same model. Here the file list and its visibility rule both belonged to the drop zone.9 This is the condition from that screen, with the markup shortened.
<Show when={files().length > 0 && !isLoading()}>
{/* Selected file names and the upload button */}
</Show>
Start with an empty list. The first test is false, so JavaScript skips the read of isLoading(). Once a file is selected, the first test passes and the loading flag matters too. Solid tracks those reads as it evaluates the expression. I can follow the condition in the markup without maintaining a separate list of subscriptions.3
How much JSX can I reuse?
In the June 22 file list, files().map(...) turned each file into a row showing its name and size. In the configuration form I committed on July 2, I used <For each={config}> to render each field’s label and input.110 The difference shows up when a list changes. Calling .map() on a reordered array runs the row callback for every item again. If a Solid 1 <For> receives those same field objects in a new order, it can move their existing rows, inputs included. Recreating the objects with the same field names loses that identity.11
Suppose I want the same file summary in the drop zone and in an import preview. I could extract a presentation component like this:
function FileSummary(props) {
return <span>{props.name} ({props.sizeLabel})</span>
}
Each caller supplies a name and a formatted size. The summary can also render sample props in isolation. It needs no file parser, upload context or signal of its own. This is the part of the JSX ecosystem I most wanted to keep. A small component with an explicit interface can travel with its source. The same principle lets an editor field take a value and a change callback.
I find that the best boundary for an interactive screen often follows what changes together. If I decide to keep the file names visible during loading, I want to find that rule beside the list I’m changing. A separate CSS file can still own the list’s spacing and typography. The SQL parser can still be tested with plain text and no UI. JSX gives the visibility rule and the list a home in the same component. A folder containing a template, a stylesheet and a handler can give a component an equally clear public interface.12
Widget composition has a long history. In 1988 the X Toolkit already documented composite widgets that could contain other widgets.13 What I see gaining ground across platforms is a more specific idea. I can describe which children belong on screen for the current state and let the framework keep that description in sync as the state changes. Flutter’s widgets illustrate how far that idea travels. A Dart expression such as Column(children: [Text(name), Text(sizeLabel)]) describes a tree by composing children and supplying their inputs. Flutter explicitly credits React as an inspiration.12
Qt and Unity also leave room for different ways of working. Qt Widgets Designer pairs a form file with C++, while Qt Quick lets a QML button keep its click handler beside its declaration. Unity UI Toolkit lets a designer edit a UXML tree visually and a programmer implement behavior in C#, or build the controls directly in C#. I prefer JSX when the person changing an interaction benefits from seeing its rendering rule and its markup together.14
A React menu that uses hooks, context and a portal asks much more of its host. Preact supplies a React compatibility layer. Solid compiles JSX for its own runtime, so porting the menu means checking each of those dependencies. On June 20 I opened Solid’s FAQ at the question about using existing React libraries. Familiar JSX made the file summary easy to carry over. Compatibility with a whole component library needed a separate check.2
Why did I choose Solid?
By June 13 I was comparing options for the SQL query manager. I wanted fine-grained updates and hoped to reuse as much existing JSX component code as possible. Preact offered a closer fit for React dependencies.15 Vue’s reactivity guide helped me place its ref alongside Preact and Solid signals. Reading a ref in a tracked computation registers a dependency. My next question was what Vue would do with that dependency when the query count changed.8
In Vue’s virtual DOM renderer, a change to a ref read by the toolbar schedules its render effect. The template compiler can mark the count text as dynamic, so the patch can skip the static Import button.16 Vapor interested me because it explored compiling the count binding into a direct DOM update. The Juejin overview described a practical goal for existing apps: developers could eventually opt in one component at a time. That work was still experimental when I was choosing a renderer for the SQL manager.1718
ConardLi’s FAQ on the TC39 proposal says that “Signals 是独立于渲染技术的。” It gives Preact and Solid as examples of how the same idea can fit different renderers.19 I think what appealed to me then was that signals were already native to Solid’s component model. With Solid’s own createSignal, I could write <span>{count()} queries</span> and the JSX renderer would track the read. I could keep the count in the toolbar component where it belonged and still update just its text.3
I remember reading Why You Don’t Need Signals in React by Daishi Kato, the author of Jotai, and agreeing with him. He separates “Reactive primitives” from “Bypassing diffing.” Jotai already gives a React application composable state and derived values. Skipping React’s comparison step to update part of the DOM directly is a separate decision. Kato even built an experiment that did it. His question was whether the performance gain justified the extra path for updating the UI.20
By then, AI assistance was part of my everyday development work. As implementation got faster, I came to see the choice of a core design principle as a project’s 胜负手 (decisive move), because it shapes every trade-off that follows. As a founder, I think about companies the same way. When a few people are building the first product, it can be hard to tell how much their shared vision matters. Once several teams have to decide for themselves which customers to serve or which features to leave out, the principles they started with show up in the product. As AI helps teams turn decisions into working software faster, I suspect those higher-level choices will matter more. An early assumption about who the product serves can now find its way into a dozen features before the team has had much chance to test it.
I think React owes much of its success to JSX. Kato’s argument helped me see why React’s rendering model and Solid’s have yet to converge. React takes the component as the unit to rerun, while a signal-driven renderer can track the individual JSX expression that read the value. For my SQL tool, I wanted React’s way of composing a screen and Solid’s decision to build rendering around signals from the start.
Ryan Carniato, the founder of SolidJS, traces fine-grained updates back to Knockout in The Evolution of Signals in JavaScript. His account comes from the perspective of someone who built a renderer around that approach.21 By 2010, before React appeared, an observable could already keep a label in sync. What took longer to mature was the machinery around that read. Carniato describes how MobX pushed a notification that a value might be stale, then recomputed a derived value when it was read. S.js, drawing on digital circuits, gave nested subscriptions an owner that could dispose of them together. Vue scheduled pending updates, and Svelte 3 showed how much update code a compiler could generate.2223
Suppose my SQL toolbar shows “2 of 3 queries valid.” I replace the query list in a single write with one containing 4 valid queries out of 5. The valid count and the total are both derived from that list. If the label runs as soon as the valid count changes, it could read the old total and report “4 of 3.” With glitch-free propagation, the label reads both counts from the same version of the list and goes straight from “2 of 3” to “4 of 5.”23
Closing the import preview raises a different question. Its old bindings should stop listening, and for an expensive preview I care about how much work can wait until the panel opens again. Kato’s argument made me more interested in Solid for a new project because Solid could build its JSX renderer around tracked reads and their lifetimes from the outset.3
Consider a count of queries parsed from the selected files. These are illustrative expressions for Preact 10 and Solid 1.153
| Expression | What updates when the count changes? |
|---|---|
Preact: <span>{count}</span> | Passing the signal directly lets the renderer update the text node. |
Preact: <span>{count.value + " queries"}</span> | Reading the value during render subscribes the component. A separately computed label passed directly as a signal restores a narrow text binding. |
Solid: <span>{count()} queries</span> | The dynamic expression reads the signal inside a tracked binding. The label can update while the component’s setup runs once per mount. |
I want to split components according to what is worth reusing. In the Jotai discussion, Dethstroke54 suggested using the atom “in a separate component to avoid re-rendering the whole parent”.24 In my toolbar that would mean extracting <QueryCount /> and letting it subscribe to the count. In Solid I can leave <span>{count()}</span> next to the Import button and update just the number. I’d extract the counter when a second screen needs it. Until then, the toolbar reads naturally as one component. The same update traced through Jotai and Solid.
Placement still matters in Solid. Reading props.name into a local variable during setup can capture its initial value. Reading it inside JSX keeps the binding live. A plain signal holding an object also needs an observable write for a field edit to reach its readers. Preact can replace the object or use a signal per field. Solid also offers property-tracked stores. I would test editing a query, replacing a row and reordering the list separately because each changes something different.153
Does fine-grained tracking make a model domain-driven?
A common misunderstanding is to count domain-driven design (DDD) as an advantage of signals. The Helux team makes a narrower claim about its atoms. They can hold a whole object and track reads of individual fields, which the authors describe as “天然对 DDD 领域驱动设计友好”. I see the appeal. A status badge can read just execution.status while the elapsed time lives on the same execution object. I can keep related data together without making every reader subscribe to every field.25
What I disagree with is the leap from that convenience to a claim about domain design. Suppose a query execution can be cancelled only while it is running. Deciding that rule with the people who use the tool, and giving the execution model responsibility for enforcing it, is domain modeling. Choosing which label updates when the status changes is a rendering decision. The same cancellation rule belongs in the model whether I use Solid signals, Jotai atoms or plain JavaScript. DDD has been around for decades. I’m curious why the term is enjoying a revival in frontend discussions, but its popularity gives me little reason to choose one reactive primitive over another.26
Could different frameworks share the same reactive model?
I can already share an ordinary SQL parser between a Solid screen and a Preact screen. The harder part is sharing a live result. Suppose I extract an import model that owns the selected files and exposes a computed count of valid queries. If the model uses Solid signals and a Preact toolbar reads that count, I need a bridge so Preact knows when to update its badge. The number is easy to pass across that boundary. What I want to carry with it is the dependency on the next edit.
That gives me another reason to be optimistic about signals and JSX. The TC39 Signals proposal explores a common way to track reads and invalidate computed values. If both frameworks adopted that foundation, the import model could own the count once. Each toolbar could read it in its own JSX and schedule its own render when the count changes. Library authors could ship more reactive logic independently of the UI framework, while component authors could keep the props and rendering conventions that suit their users. TC39 lists Signals at Stage 1. Sharing a reactive model this way is a possibility I see in the proposal, while sharing an entire JSX component still depends on its runtime requirements.27
What else would I check before choosing a framework?
On June 13 I also read a comparison of Preact and Solid package sizes. For this decision I would measure the first route with the router, UI dependencies and any React compatibility code included. Then I would profile one edit and one list sort on the same data. I didn’t record a paired benchmark. A signal read tells me where the interface can update. A dynamic import determines which code can wait until a route opens.28
Routing illustrates the boundary. I looked at wouter as a lightweight React/Preact option. Its hooks rely on that runtime. In July the SQL manager’s frontend for the Python service used Solid Router to navigate between the SQL and calculation screens.2910
I wanted to keep server rendering open as an option. I read Solid Router’s SSR guide on June 13 and opened a Vite template for Solid SSR on June 22.3031 For a server-rendered query screen, I would test a direct visit to the same URL in two sessions. Each request needs its own data and reactive state, and each client needs initial values matching its HTML. Preact SSR raises the same questions. The working example in this project was the file-import UI.1
The drop-zone border is my test for the performance claim. When a file crosses the drop-zone boundary, the optimal update touches the border and leaves every query row alone. Fine-grained signals can produce that update when the two views read separate state. Tracking those reads costs something, and if every row really needs a new value, every row still has work to do. An explicit subscription to just the drag flag could be equally selective. What I like about signals is that the read in JSX already tells me which update I’m asking for.13
That is why I would build another screen this way. JSX gives me a component interface I expect to keep. Signals let the implementation follow changes at the granularity the screen needs. If the TC39 proposal succeeds, I may also be able to take the reactive part with me when the next project uses a different framework.27
References
Footnotes
-
Cai, B. (2025, June 22). Add preliminary UI for file parsing [Local Git commit]. SqlQueryManagement,
019b8ba,webui/src/App.jsx, FileDrop component. ↩ ↩2 ↩3 ↩4 ↩5 -
Preact contributors. (n.d.). Differences to React. Preact 10 guide. Compatibility and JSX. Solid contributors. (n.d.). Frequently asked questions. React compatibility. ↩ ↩2
-
Solid contributors. (n.d.). Fine-grained reactivity and Stores. Solid Docs. Tracked updates, nested state. ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8
-
Nani_kutty. (2024, July 14). Angular Signal vs React UseSate. Reddit, r/angular. Opening post, Angular and React name-update examples. ↩
-
React contributors. (n.d.). useState. React documentation. Why the current handler still sees the old state. ↩
-
ethansidentifiable. (2023, July). Comment on Why are signals still not so popular? Reddit, r/reactjs. React and Solid counter examples. ↩
-
Nawo, A. (2023, January 29). Solid.js, React, and Vue — reactivity systems compared. Medium. Article visited June 13, 2025. Author’s full version on Vrite, January 26, 2023, sections “React,” “Vue,” and “Solid”. ↩ ↩2
-
Vue contributors. (n.d.). 深入响应式系统. Vue.js documentation. Accessed June 13, 2025. 与信号 (signal) 的联系. ↩ ↩2
-
Solid contributors. (n.d.). State management. Solid Docs. Managing complex state. Solid contributors. (n.d.). createContext. Solid Docs. Sharing state with descendants. ↩
-
Cai, B. (2025, July 2). Add web UI for the Python service [Local Git commit]. SqlQueryManagement,
4a06444,webui-py/src/App.jsxandwebui-py/src/index.jsx(routing),webui-py/src/components/NotionStyleForm.jsx(field list). ↩ ↩2 -
Solid contributors. (n.d.). <For>. Solid Docs. Item identity and row reuse. ↩
-
React contributors. (n.d.). Writing markup with JSX. React documentation. Markup and rendering logic in components. Flutter contributors. (n.d.). Introduction to building UI with Flutter. Flutter documentation. Widgets, composition and React’s influence. ↩ ↩2
-
X Window System contributors. (1988, October). X Toolkit Intrinsics, X11 Release 3, §1.3.2, “Composite Widgets.” Specification reproduced in FIPS 158. ↩
-
The Qt Company. (n.d.). Using a Qt Widgets Designer UI file in your C++ application and Signal and handler event system. Qt 6 documentation. Designer form example, QML button handler. Unity Technologies. (n.d.). Get started with UI Toolkit. Unity 2022.3 Manual. UI Builder, UXML and C# workflows. ↩
-
Hagemeister, M., & Miller, J. (2022, September 6). Introducing Signals. Preact. Direct JSX bindings. ↩ ↩2 ↩3
-
Vue contributors. (n.d.). 渲染机制. Vue.js documentation. Accessed June 13, 2025. 编译器通告的虚拟 DOM. ↩
-
QdFe. (2024, February 20). Vue 3 Vapor 模式. 稀土掘金. Accessed June 13, 2025. “Vapor Mode 使用,” subsection “在组件层面”. ↩
-
Vue contributors. (n.d.). Vue Vapor. GitHub. Accessed June 13, 2025. Research repository. ↩
-
ConardLi. (2024, April 10). JavaScript Signals 的标准化提案,来了! 知乎,code秘密花园. “有关 Signals 的一些热门问题,” answer to the question on virtual DOM and direct DOM rendering. ↩
-
Kato, D. (2023, April 23). Why you don’t need signals in React. Daishi Kato’s blog. Introduction, two-item list, bypassing diffing and the jotai-signal experiment. See also Kato, D. (2024, August 9). How Jotai was born. ↩
-
SolidJS. (n.d.). Team & contributions. Ryan Carniato, project founder, Core Team section. ↩
-
Sanderson, S. (2010, July 5). Introducing Knockout, a UI library for JavaScript. Steve Sanderson’s blog. Original announcement and examples. ↩
-
Carniato, R. (2023, February 27). The evolution of signals in JavaScript. DEV Community. “Glitch Free”, “Conquering Leaky Observers”, “Scheduling” and “Compilation”. JavaScript 中 Signals 的演变 (Chinese translation, March 6, 2023, accessed June 13, 2025). ↩ ↩2
-
Dethstroke54. (2024, June 18). Comment on isolating an atom subscription in a child component. Reddit, r/reactjs, paragraph beginning “E.g. if you have some state to render”. ↩
-
腾讯TNTWeb前端团队. (2024, January 7). 集atom、signal、依赖追踪为一体的helux发布了,为react带来细粒度响应式更新能力. 稀土掘金. “优势,” second bullet. ↩
-
Evans, E. (2015, March). Domain-driven design reference. Domain Language. Ubiquitous language and aggregates. ↩
-
TC39 Signals proposal contributors. (n.d.). JavaScript Signals standard proposal. GitHub. Goals for shared dependency tracking and framework scheduling. TC39. (n.d.). Stage 1 proposals. Signals entry. ↩ ↩2
-
r/solidjs contributors. (2023, May 9–10). Solid or Preact when talking about both performance and module size? Reddit. Discussion of hooks, signals, compatibility and bundle comparisons. ↩
-
Molefrog and contributors. (n.d.). wouter. GitHub. React and Preact entry points. React Router contributors. (n.d.). Picking a mode. Data and Framework modes. ↩
-
Solid contributors. (n.d.). Server side rendering. Solid Router documentation. Rendering a route on the server. ↩
-
bluwy and contributors. (n.d.). create-vite-extra: template-ssr-solid. GitHub. Solid SSR example. Preact contributors. (n.d.). Server-side rendering. Preact 10 guide. ↩