Skip to content

TypeError: Cannot read properties of undefined (reading 'path') at matchPath #1609

@saeedali780

Description

@saeedali780

import React from "react";
import { Link, useMatch } from "react-router-dom";

export default function Posts() {
let {Path, url} = useMatch();
console.log(Path);

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