Skip to content

Commit

Permalink
Merge pull request #223 from dimazuien/update-readme
Browse files Browse the repository at this point in the history
Update Readme
  • Loading branch information
dimazuien authored Jul 31, 2023
2 parents 0ce738f + 0629e3c commit 4304550
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ A utility for React to set 100vh equal to the actual browser inner window height

Since `vh` has troubles on mobile browsers (primarily because of the address bar), there are several tricks to fix it. This package implements the one from [this article](https://css-tricks.com/the-trick-to-viewport-units-on-mobile/).

_The solution for this was introduced in the [CSS Values and Units Module Level 4](https://www.w3.org/TR/css-values-4) which is [widely supported now](https://caniuse.com/viewport-unit-variants). Instead of using this package, you can use the `dvh` unit if your project doesn't need to support older browsers. [Read more about new units.](https://web.dev/viewport-units/)_

## Usage

```shell
Expand Down

0 comments on commit 4304550

Please sign in to comment.