react-font-tools
Version:
Tools to help you with font of your app.
28 lines (19 loc) • 522 B
Markdown
Tools to help you with font of your app.
```sh
yarn add react-font-tools
npm i react-font-tools --save
```
[](https://github.com/Achaak/react-font-tools/blob/master/CHANGELOG.md)
Return the font size and setFontSize to set a new font.
The default font is 1rem
Example:
``` js
const [fontSize, setFontSize] = useFontSize()
setFontSize("2rem")
```