Skip to content
This repository has been archived by the owner on May 6, 2019. It is now read-only.

Styled component className function #10

Open
fengb opened this issue Feb 27, 2019 · 1 comment
Open

Styled component className function #10

fengb opened this issue Feb 27, 2019 · 1 comment

Comments

@fengb
Copy link

fengb commented Feb 27, 2019

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
Copy link
Contributor

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants