Skip to content

Commit

Permalink
docs(state): added a "for read only" disclaimer
Browse files Browse the repository at this point in the history
  • Loading branch information
shairez committed Jun 19, 2024
1 parent 6e973ff commit c4d7377
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default component$(() => {

This example above shows how `useSignal()` can be used in a counter component to keep track of the count. Modifying the `count.value` property will cause the component to be updated automatically. For instance, when the property is changed in the button click handler as in the example above.

> **NOTE** Don't pass signals as props, instead pass their values:
> **NOTE** If you just need to read the signal's value, don't pass the entire signal as a prop, instead pass only its value:
**Avoid:**

Expand Down

0 comments on commit c4d7377

Please sign in to comment.