Package Exports
- use-css-variable
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (use-css-variable) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
use-css-variable
A pretty custom hooks for css variable and react.
- type-safe!
Install
// npm
npm install --save use-css-variable
// yarn
yarn add use-css-variableUsage
import React, { FC } from 'react'
import { useCSSVariable } from 'use-css-variable'
export const Component: FC = () => {
const [foo, setFoo] = useCSSVariable('foo')
...
}See the API for more details