Skip to content

Question: Constructor + props, context? #37

@loopmode

Description

@loopmode

Hi. Is it safe to go for a constructor-based approach (as opposed to e.g. componentWillMount) when you only pass props to super(), but not the context? Doesn't this break with popular libraries that use context, like react-router?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions