Browse Source

Update hooks-intro.md (#1316)

Make link to Writing Custom Hooks lead to the top of the page rather than to how to Using a Custom Hook
main
Bæring Gunnar Steinþórsson 6 years ago
committed by Alex Krolick
parent
commit
8d562573c7
  1. 2
      content/docs/hooks-intro.md

2
content/docs/hooks-intro.md

@ -53,7 +53,7 @@ React doesn't offer a way to "attach" reusable behavior to a component (for exam
With Hooks, you can extract stateful logic from a component so it can be tested independently and reused. **Hooks allow you to reuse stateful logic without changing your component hierarchy.** This makes it easy to share Hooks among many components or with the community. With Hooks, you can extract stateful logic from a component so it can be tested independently and reused. **Hooks allow you to reuse stateful logic without changing your component hierarchy.** This makes it easy to share Hooks among many components or with the community.
We'll discuss this more in [Writing Custom Hooks](/docs/hooks-custom.html#using-a-custom-hook). We'll discuss this more in [Writing Custom Hooks](/docs/hooks-custom.html).
### Complex components become hard to understand ### Complex components become hard to understand

Loading…
Cancel
Save