Skip to content

displayName? not available in instance... #2285

@cigzigwon

Description

@cigzigwon

JSX will infer the component's name from the variable assignment and specify the class's displayName accordingly.

Really?

This is not available in a class instance of React. Not even if it is set explicitly. Also, componentDidUpdate prevState seems to be the current state... I'm not sure if this is because of how browserify is bundling the JS or what. for v0.11.2. I've tried everything and prevState always logs the current state post update.
selection_001

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