gears showing work in action
Updating query parameters with react router dom v6

Working on a project, I realized that as I was updating my packages, react-router-dom was updated to version 6.x.x e.g6.0.2 as well.

So, going through the documentation, I realized that in v6, React router now has a helpful custom useSearchParams hook which is a essentially a small wrapper over browser'sURLSearchParams

--

--

Saad Riaz

Saad Riaz

Full stack engineer with expertise in angular/react, nest and graphql.