Design Patterns · Senior · Question 1 of 75
How does the "signals" model (Solid, Preact Signals, Angular Signals) differ from React's model?
- ✓Correct answer: Only the dependent places update, without re-rendering the component
- 2Signals re-render the whole app on any state change
- 3Signals work only on the server and aren't used in the browser
Explanation
A signal is a reactive value (Observer): reading registers a dependency, and writing updates exactly its subscribers (text, an attribute, a computation). React instead re-renders the component and diffs the virtual tree; the React Compiler reduces that cost, but the model is different.