Skip to content

Commit

Permalink
πŸ“ Fix code sample in documentation (#3094)
Browse files Browse the repository at this point in the history
  • Loading branch information
warrenseine authored Nov 10, 2023
1 parent 2ad846f commit 32a755b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/advanced/pitfalls.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ If you must use intervals, use references as well, but keep in mind that this is
```jsx
useEffect(() => {
const interval = setInterval(() => ref.current.position.x += 0.1), 1)
const interval = setInterval(() => ref.current.position.x += 0.1, 1)
return () => clearInterval(interval)
}, [])
```
Expand Down

0 comments on commit 32a755b

Please sign in to comment.