use-rem-value
v0.0.3
Published
A simple React Hook that provide a current font size of the html node.
Downloads
2
Readme
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>
);
}