heydovetail / typestyle-react

React integration for TypeStyle. A library of useful helpers to render React components with styles provided by TypeStyle.
https://dovetailapp.com
Apache License 2.0
2 stars 0 forks source link

Styled component className function #10

Open fengb opened 5 years ago

fengb commented 5 years ago

I'd love to switch to using the styled function fulltime, but there are times where I need a raw class name. Using style directly can be a little confusing since it's a different paradigm but named so similar to styled

Is it possible to expose the helper function as a static function that simply generates the classname?

class Styled {
  static className = memoizedComputeClass
}
bradleyayers commented 5 years ago

Hi fengb we've actually moved to a monorepo and have absorbed this library into our monorepo and are no longer using this repo, but have left it public for posterity. Let me know if you're interested in becoming a maintainer of this library.