Skip to content

undefined class if both className and styleName are JSX expressions #20

Closed
@gewfy

Description

@gewfy

Hi!
I want the parent component to be able to set classes on it's child components. Therefore I need the className to be appended at runtime. But this:

<div className={this.props.className} styleName={"foo"}>

Renders:

<div class="undefined foo___1ZSNk">

Even if the parent component passes className to the child component.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions