docs: Add Signals tutorial with examples and hints in guide#1336
Open
Karthikeyan2k3 wants to merge 9 commits intopreactjs:masterfrom
Open
docs: Add Signals tutorial with examples and hints in guide#1336Karthikeyan2k3 wants to merge 9 commits intopreactjs:masterfrom
Karthikeyan2k3 wants to merge 9 commits intopreactjs:masterfrom
Conversation
rschristian
reviewed
Sep 11, 2025
Member
rschristian
left a comment
There was a problem hiding this comment.
Thanks for doing this! I still need to read the tutorial page but this is a great start!
…ct-www into docs/add-signals-tab
rschristian
reviewed
Sep 15, 2025
rschristian
reviewed
Sep 15, 2025
| solvable: true | ||
| --- | ||
|
|
||
| # Signals |
Member
There was a problem hiding this comment.
Not essential, but some more consistent line length in this document would be appreciated. Some lines wrap early, some go long; it's just a bit inconsistent when editing.
| parts of the UI that actually uses them. A signal remembers its value and automatically tracks where it is used, so when the value | ||
| changes, only the parts that depend on it will update. | ||
|
|
||
| ### Creating a signal |
Member
There was a problem hiding this comment.
I feel like a lot of this content should be copy/pasted from the Signals guide page or intro blog. It looks like you wrote this entirely yourself, which is impressive, but the language and examples diverge quite a bit despite containing similar information.
Don't have time to review more right now, but I can take a look at this myself at some point.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added a new tutorial to highlight Signals as a concept in and of itself, so everybody going through it will understand how they work and differ from hooks.
I have sprinkled a few hints about signals across a couple of pages (Essentials ⤵ Forms, Refs sections, etc.) in the guide as well, so users are reminded how something of the same effect as documented can be achieved via signals too, this swiftly follows "Signals" example tabs inserted right alongside Classes and Hooks.
Related to #1281