import { useLocation } from 'react-router-dom'; import queryString from 'query-string'; import MovieChart from "./MovieChart/index.js"; const SearchResult = () => { const { search } = useLocation() const { title } = queryString.parse(search) console.log("search==",search,"title==",title) return ( <>