use-rem-value
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

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>
    );
}

Readme

Keywords

Package Sidebar

Install

npm i use-rem-value

Weekly Downloads

3

Version

0.0.3

License

MIT

Unpacked Size

4.48 kB

Total Files

6

Last publish

Collaborators

  • cy6eria