Skip to content

Commit b337645

Browse files
philipp-spiessstipsan
authored andcommitted
fix(readme): typos (#329)
1 parent b678ec2 commit b337645

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ Put it this way:
6868
```js
6969
import scrollIntoView from 'scroll-into-view-if-needed'
7070
// Even if all you do is this
71-
scrollIntoIntoView(node, { scrollMode: 'if-needed' })
71+
scrollIntoView(node, { scrollMode: 'if-needed' })
7272
// You end up with the same bundlesize as people who need
7373
// smooth scrolling to work in browsers that don't support it natively
74-
scrollIntoIntoView(node, { behavior: 'smooth', scrollMode: 'if-needed' })
74+
scrollIntoView(node, { behavior: 'smooth', scrollMode: 'if-needed' })
7575
```
7676

7777
Because of this you need to choose a strategy that matches your priorities: load time, consistency or quality.

0 commit comments

Comments
 (0)