top of page
Search

React-router-update-url-query-params

  • thinratoughsobcga
  • Feb 1, 2022
  • 1 min read
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





 
 
 

Comments


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

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