Skip to content

[Bug] Example in documentation for NavBarLinks causes a react-router error #5

@paulochoi

Description

@paulochoi

Version

1.0.1

Reproduction link

https://github.com/paulochoi/notus-pro-bug

Operating System

Microsoft Windows

Device

PC

Browser & Version

Latest Google Chrome and MS Edge

Steps to reproduce

Copy and paste NavbarLInksLanding2 from https://demos.creative-tim.com/notus-pro-react/?_ga=2.22529723.1448880554.1629379309-282331650.1626875920#/documentation/components/presentation/components/navbars

Open the component.

What is expected?

Component to render

What is actually happening?

Error saying that You should not use outside a


Solution

Wrap the NavBarComponent with a Router.

Additional comments

Please fix the documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions