Skip to content

Commit ef2d5f8

Browse files
authored
Merge pull request pmndrs#441 from connorholyday/patch-1
Fix spelling in Hooks.mdx
2 parents 3d6f765 + eb82235 commit ef2d5f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

documentation/Hooks.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ import {
5454
`useSpring(Values | () => Values): animatedProps | [animatedProps, set]`
5555

5656
<p>
57-
useSpring accepts props and returns animated-props, which you can then distribute among your views. For all full table of all accepted props concult the <a href="/spring">spring components documentation</a>.
57+
useSpring accepts props and returns animated-props, which you can then distribute among your views. For all full table of all accepted props consult the <a href="/spring">spring components documentation</a>.
5858
</p>
5959

6060

@@ -72,7 +72,7 @@ const props = useSpring({ opacity: toggle ? 1 : 0 })
7272
<span className="highlight"><i>Or</i>: pass a function</span> that returns values, and update using "set"
7373
</h3>
7474

75-
You will get a `set(Values)` function back, use it to update the animation. This will not cause the component to render, which can be generally more performant. It also prevents configs from being re-created on every render. Handling updates like this is extremely useful for fast-occuring updates, like event streams, mousemoves, etc.
75+
You will get a `set(Values)` function back, use it to update the animation. This will not cause the component to render, which can be generally more performant. It also prevents configs from being re-created on every render. Handling updates like this is extremely useful for fast-occurring updates, like event streams, mousemoves, etc.
7676

7777
```jsx
7878
const [props, set] = useSpring(() => ({ opacity: 1 }))

0 commit comments

Comments
 (0)