useSearchParams hook to read and change queryString

PHOTO EMBED

Fri Aug 12 2022 00:04:54 GMT+0000 (UTC)

Saved by @SamMrch #react.js

<Route path=":id/makeYear?" element={<User/>} />
  //
const [searchParams, setSearchParams] = useSearchParams();
const makeYear = searchParams.get("makeYear");
content_copyCOPY