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

Styled component className function #10

Open
@fengb

Description

@fengb

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
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions