Skip to content

Commit 9a5913c

Browse files
committed
fix links
1 parent c5e43db commit 9a5913c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/dioxus/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ fn App() -> Element {
176176
}
177177
```
178178

179-
Hooks are sensitive to how they are used. To use hooks, you must abide by the ["rules of hooks"](https://dioxuslabs.com/learn/0.7/reference/hooks#rules-of-hooks):
179+
Hooks are sensitive to how they are used. To use hooks, you must abide by the ["rules of hooks"](https://dioxuslabs.com/learn/0.7/essentials/basics/hooks#rules-of-hooks):
180180

181181
- Hooks can only be called in the body of a component or another hook. Not inside of another expression like a loop, conditional or function call.
182182
- Hooks should start with "use\_"

packages/hooks/docs/moving_state_around.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
You will often need to move state around between your components. Dioxus provides three different ways to pass around state:
55

6-
1. Just pass your values as [props](https://dioxuslabs.com/learn/0.7/reference/component_props):
6+
1. Just pass your values as [props](https://dioxuslabs.com/learn/0.7/essentials/ui/components#component-properties):
77

88
```rust
99
# use dioxus::prelude::*;
@@ -30,7 +30,7 @@ fn IncrementButton(mut count: Signal<i32>) -> Element {
3030

3131
This is the most common way to pass state around. It is the most explicit and local to your component. Use this when it isn't overly annoying to pass around a value.
3232

33-
2. Use [use_context](https://dioxuslabs.com/learn/0.7/reference/context) to pass state from a parent component to all children:
33+
2. Use [use_context](https://dioxuslabs.com/learn/0.7/essentials/basics/context) to pass state from a parent component to all children:
3434

3535
```rust
3636
# use dioxus::prelude::*;

0 commit comments

Comments
 (0)