useWindowScroll doc typos

This commit is contained in:
Ward Oosterlijnck 2019-03-23 19:56:49 +11:00
parent c75f997f8e
commit 71eb416953
2 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
# `useWindowSize`
# `useWindowScroll`
React sensor hook that re-renders on window scroll

View File

@ -8,14 +8,14 @@ const Demo = () => {
return (
<div style={{
width: "200vw",
height: "200vh"
width: '200vw',
height: '200vh'
}}>
<div style={{
position: "fixed",
position: 'fixed',
left: 0,
right: 0}}
>
right: 0
}}>
<div>x: {x}</div>
<div>y: {y}</div>
</div>