Skip to content

[Docs]: Incorrect component name in dynamic segment section #13124

@szhsin

Description

@szhsin

Describe what's incorrect/missing in the documentation

The dynamic segment documentation section includes the following code snippet:

import { useParams } from "react-router";

export default function Team() {
  let { categoryId, productId } = useParams();
  // ...
}

It appears that the component name "Team" has been carried over from a previous example. To avoid confusion, it should be updated to something more relevant, such as "Product."

Repo link

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions