Skip to content

Commit

Permalink
docs: fix a typo in useResize docs (obsere → observe) (#2043)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ajit committed Jan 4, 2023
1 parent c90b79d commit 6b7d672
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/app/routes/docs/utilities/use-resize.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ isNew: true

A small abstraction around the [`useSpring`](/docs/components/use-spring) hook. It returns a `SpringValues`
object with the `width` and `height` of the element it's attached to & doesn't necessarily have to be attached
to the window, by passing a `container` you can obsere that element's size instead.
to the window, by passing a `container` you can observe that element's size instead.

## Usage

Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/hooks/useResize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export interface UseResizeOptions extends Omit<SpringProps, 'to' | 'from'> {
* A small abstraction around the `useSpring` hook. It returns a `SpringValues`
* object with the `width` and `height` of the element it's attached to & doesn't
* necessarily have to be attached to the window, by passing a `container` you
* can obsere that element's size instead.
* can observe that element's size instead.
*
```jsx
import { useResize, animated } from '@react-spring/web'
Expand Down

1 comment on commit 6b7d672

@vercel
Copy link

@vercel vercel bot commented on 6b7d672 Jan 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.