Skip to content

Commit

Permalink
fix derived signal name in explanation section (#2229)
Browse files Browse the repository at this point in the history
it said "the only thing that will rerender is the count() text" but the text node references the `doubleCount()` derived signal not the `count()` signal
  • Loading branch information
chee authored Jul 23, 2024
1 parent 2ae7d1d commit f6164b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function Counter() {
console.log("The body of the function runs once...");

// JSX allows you to write HTML within your JavaScript function and include dynamic expressions using the { } syntax
// The only part of this that will ever rerender is the count() text.
// The only part of this that will ever rerender is the doubleCount() text.
return (
<>
<button onClick={() => setCount(c => c + 1)}>
Expand Down

0 comments on commit f6164b6

Please sign in to comment.