Transform a string of css rules into a style object
npm install css-to-styleTransform a string of css rules into a style object.
``js`
toStyle(cssText);
- cssText string of CSS rules
An object of CSS rules, where the properties are camelCased.
`js
import toStyle from 'css-to-style';
toStyle('font-size: 2em; color: #f00; margin-top: 4px');
// returns { fontSize: '2em', color: '#f00', marginTop: '4px' }
``