답변 1개 / 댓글 1개
채택된 답변
+20 포인트
src/Routes/Search.tsx
Copy
const onBoxClicked = (videoId: any) => {
const currentPath = window.location.pathname;
const query = `?keyword=${keyword}`;
const path =
currentPath === "/"
? `/videos/${videoId}${query}`
: `${currentPath}/videos/${videoId}${query}`;
navigate(path);
};
답변을 작성하려면 로그인이 필요합니다.