top of page
Search

React-router-update-url-query-params

thinratoughsobcga
Sep 20, 2020 — Tagged with webdev, react, codenewbie. ... const updateUrl = (newVal: string) => { setQuery(newVal); const query = getQuery(); if (newVal.trim() !== ... pushState({}​, '', newUrl); } }; return [query, updateUrl]; }; export default useQueryParam; ... a while to find some advice on how to do this without React Router.












react-router-update-url-query-params


939c2ea5af





0 views0 comments

Recent Posts

See All

Comments


© 2023 by Sphere Construction. Proudly created with Wix.com

  • Facebook - Grey Circle
  • LinkedIn - Grey Circle
bottom of page