0.0.3 • Published 3 years ago

use-rem-value v0.0.3

Weekly downloads
9
License
MIT
Repository
github
Last release
3 years ago

use-rem-value

This hook can help you to solve problems, when you have to use values in pixel (e.g. if you use react-virtualized), but all your sizes is based on rem. You can check an example here.

Installation

npm install use-rem-value

How to use

const MyComponent = (props) => {
    const remValue = useRemValue();

    return (
        <div>Current rem value is {remValue}.</div>
    );
}
0.0.3

3 years ago

0.0.2

6 years ago

0.0.1

6 years ago

0.0.0

6 years ago