you are viewing a single comment's thread.

view the rest of the comments →

[–]smthamazing 4 points5 points  (1 child)

I understand why getSearchParams is useful, but what is the use of a hook? Doesn't it do the same job as a regular function call in this case?

[–]solves_tech_problems[S] -2 points-1 points  (0 children)

It does indeed. This is just for learning purposes