Loading video...

Video Failed to Load

Go Home

⚛️ React Tip: I f you want easily shareable URLs, use the useQueryParams hook. ↓

84,767 views • 2 years ago •via X (Twitter)

10 Comments

George Moller's profile picture
George Moller2 years ago

I've been working professionally with React for more than 8 years and I compiled all my knowledge into 100+ infographics just like this one. Check them out ↓

George Moller's profile picture
George Moller2 years ago

I've been working professionally with React for more than 8 years and I compiled all my knowledge into 100+ infographics just like this one. Check them out ↓

Angel's profile picture
Angel2 years ago

I have taken the idea from your tweet and asked chatgpt to create that hook using nextjs router. It could be improved by adding zod validation and be able to separate params in several hooks (for example one subset for pagination and another one for table filtering)

Roni Rahman's profile picture
Roni Rahman2 years ago

Great tip as usual George 🙌

George Moller's profile picture
George Moller2 years ago

Thanks Roni! I used this hook a lot to make urls easily shareable so I thought to share it! Glad you liked it!

Caleb Panza ☾'s profile picture
Caleb Panza ☾2 years ago

Cc @jjordanwade

Dayo Awobeku's profile picture
Dayo Awobeku2 years ago

sleek!

George Moller's profile picture
George Moller2 years ago

Glad you liked the video Dayo!

Toby's profile picture
Toby2 years ago

I almost always have to write this hook in every project I work on. Created a repo for it months ago but never worked on it. Glad to see that somebody has already done it.

George Moller's profile picture
George Moller2 years ago

The same happened to me until I found useQueryParams library 😅

Related Videos