0.0.3 • Published 2 years ago

use-rem-value v0.0.3

Weekly downloads
9
License
MIT
Repository
github
Last release
2 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

2 years ago

0.0.2

5 years ago

0.0.1

5 years ago

0.0.0

5 years ago