CanopyTax / kremling

Embarrassingly simple css for React
https://kremling.js.org
Apache License 2.0
36 stars 4 forks source link

Add support for importing classname helpers without the rest of kremling #30

Closed geoctrl closed 5 years ago

geoctrl commented 5 years ago

currently, if I try to import just the classname-helpers.js like this:

import { a } from 'kremling/src/classname-helpers';

it doesn't work, because the export name a is defined in kremling.js

the problem is that kremling.js also requires react and react-dom - which aren't required when only using the classname helpers

would be nice to separate these