Skip to content

Commit

Permalink
Fix typo in state docs (DioxusLabs#347)
Browse files Browse the repository at this point in the history
  • Loading branch information
vacekj authored Dec 14, 2024
1 parent 622e928 commit 1eca8fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs-src/0.6/src/essentials/state/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ DemoFrame {

### Making Props Reactive

To avoid loosing reactivity with props, we recommend you wrap any props you want to track in a `ReadOnlySignal`. Dioxus will automatically convert `T` into `ReadOnlySignal<T>` when you pass props to the component. This will ensure your props are tracked and rerun any state you derive in the component:
To avoid losing reactivity with props, we recommend you wrap any props you want to track in a `ReadOnlySignal`. Dioxus will automatically convert `T` into `ReadOnlySignal<T>` when you pass props to the component. This will ensure your props are tracked and rerun any state you derive in the component:

```rust
{{#include src/doc_examples/reactivity.rs:making_props_reactive}}
Expand Down

0 comments on commit 1eca8fd

Please sign in to comment.