Skip to content

Commit

Permalink
Merge pull request #53 from smileart/fix/func-name
Browse files Browse the repository at this point in the history
doc: change exported function name in READMEs
  • Loading branch information
mvasin authored Feb 4, 2021
2 parents 91c534f + 6b21d0b commit f47635d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ const MyHalfHeightExampleComponent = ({ children }) => {
}
```

Under the hood `use100vh` uses `getRealHeight` function which is exported as
Under the hood `use100vh` uses `measureHeight` function which is exported as
well, so feel free to use it, even without React. Currently it returns
`document.documentElement?.clientHeight || window.innerHeight`.
`document.documentElement?.clientHeight || window.innerHeight` or `null`.

## Testing

Expand Down
4 changes: 2 additions & 2 deletions packages/react-div-100vh/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ const MyHalfHeightExampleComponent = ({ children }) => {
}
```

Under the hood `use100vh` uses `getRealHeight` function which is exported as
Under the hood `use100vh` uses `measureHeight` function which is exported as
well, so feel free to use it, even without React. Currently it returns
`document.documentElement?.clientHeight || window.innerHeight`.
`document.documentElement?.clientHeight || window.innerHeight` or `null`.

## Testing

Expand Down
2 changes: 1 addition & 1 deletion packages/test-app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
name="description"
content="React hook that helps to avoid 100vh issue on mobile"
/>
<title>useRealHeight</title>
<title>measureHeight</title>
<style>
body {
background: #eee;
Expand Down

1 comment on commit f47635d

@vercel
Copy link

@vercel vercel bot commented on f47635d Feb 4, 2021

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.