79465921

Date: 2025-02-25 08:59:22
Score: 0.5
Natty:
Report link

In the latest version react-router-dom@6 use the useLocation() hook to access the state or data present to the child component.

import { useLocation } from "react-router-dom"; 
const location = useLocation();
console.log(location.FiltersDataList1) // To access the value
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: ronak dholariya