Skip to content

Commit

Permalink
Merge pull request #103 from marc2332/fix/404-custom-hooks-link
Browse files Browse the repository at this point in the history
fix: Update `create your own hook` link
  • Loading branch information
ealmloff authored Aug 22, 2023
2 parents 6323cae + e325feb commit 8c6fad1
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 8c6fad1

Please sign in to comment.