docs: updaet hooks

This commit is contained in:
Jonathan Kelley 2022-01-29 10:15:23 -05:00
parent 3d75f1cb05
commit 8b402f946a
2 changed files with 7 additions and 0 deletions

View file

@ -14,6 +14,11 @@
- [Reusing, Importing, and Exporting](elements/exporting_components.md)
- [Children and Attributes](elements/component_children.md)
- [How Data Flows](elements/composing.md)
- [Thinking Reactively]()
- [Thinking Reactively]()
- [Thinking Reactively]()
- [Thinking Reactively]()
- [Thinking Reactively]()
- [Adding Interactivity](interactivity/index.md)
- [Hooks and Internal State](interactivity/hooks.md)
- [UseState and UseRef](interactivity/importanthooks.md)

View file

@ -7,6 +7,8 @@ Most components you will write in Dioxus will need to store state somehow. For l
Both of these hooks are extremely powerful and flexible, so we've dedicated this section to understanding them properly.
> These two hooks are not the only way to store state. You can always build your own hooks!
## Note on Hooks
If you're struggling with errors due to usage in hooks, make sure you're following the rules of hooks: