Skip to content

Commit

Permalink
fix: Update create your own hook link
Browse files Browse the repository at this point in the history
  • Loading branch information
marc2332 authored Aug 13, 2023
1 parent 09397db commit e325feb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs-src/0.4/en/reference/hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ So far our components have had no state like a normal rust functions. However, i

Hooks allow us to create state in our components. Hooks are Rust functions that take a reference to [`ScopeState`](https://docs.rs/dioxus/latest/dioxus/prelude/struct.ScopeState.html) (in a component, you can pass `cx`), and provide you with functionality and state.

Dioxus provides many built in hooks, but if those hooks don't fit your specific use case, you also can [create your own hook](../../cookbook/state/custom_hooks/index.md)
Dioxus provides many built in hooks, but if those hooks don't fit your specific use case, you also can [create your own hook](../cookbook/state/custom_hooks/index.md)

## use_state Hook

Expand Down

0 comments on commit e325feb

Please sign in to comment.