Skip to content

Router overrides component's default name prop #252

@Cryszon

Description

@Cryszon

Is there a specific reason why the router overrides a component's name prop or is it simply so you can use this.props.name instead of this.props.route.name? The current behaviour seems to make it impossible to use defaultProps.name, because the router sets it to the name of the route if no value is passed.

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