SearchResult.js 508 Bytes
Newer Older
Kim, Subin's avatar
수빈    
Kim, Subin committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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 (
        <>
            <h3 className="text-white text-center my-5">'{title}'  관한 검색 결과입니다.</h3>
            <MovieChart />
        </>
    )
}

export default SearchResult