Skip to content

Commit

Permalink
fix derived signal name in explanation section
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 20, 2024
1 parent 2ae7d1d commit fabb1e0
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 fabb1e0

Please sign in to comment.