Mohammad Asif cf937194cb Removed un-waned things 1. | 5 ay önce | |
---|---|---|
.. | ||
dist | 5 ay önce | |
README.md | 5 ay önce | |
package.json | 5 ay önce |
300b with all dependencies, minified and gzipped
Creates a style component with internal tracker.
import {styleSingleton} from 'react-style-singleton'
const Style = styleSingleton();
export const App = () => (
<Style styles={'body {color:red}'} />
);
import {styleHookSingleton} from 'react-style-singleton';
const useStyle = styleHookSingleton();
const useAnotherStyle = styleHookSingleton();
export const App = () => {
useStyle('div {color:red}');
useAnotherStyle('body { background-color:red }');
return (<div />);
}