input 검색창에 넣는 e.target.value를
const [searchInput, setSearchInput] = useState("");의 searchInput에 넣고
그 searchInput을 setSearchParams({ q: searchInput });로 넘기는데요.
그럼 /search?q=검색어 로 url이 바뀌고 검색결과까지는 잘 나타나는데
다른페이지로 넘어가기위에 <Link to="/post">버튼</Link>을 누르면 post페이지로 넘어가지를 않습니다.
근데 input에 있는 키워드를 삭제하면 넘어갑니다..
왜때문에 이런걸까요 고민하는데 구글링도 실패하고 잘 모르겠습니다 ㅠㅠ