Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

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

84,767 Aufrufe • vor 2 Jahren •via X (Twitter)

10 Kommentare

Profilbild von George Moller
George Mollervor 2 Jahren

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 ↓

Profilbild von George Moller
George Mollervor 2 Jahren

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 ↓

Profilbild von Angel
Angelvor 2 Jahren

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)

Profilbild von Roni Rahman
Roni Rahmanvor 2 Jahren

Great tip as usual George 🙌

Profilbild von George Moller
George Mollervor 2 Jahren

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

Profilbild von Caleb Panza ☾
Caleb Panza ☾vor 2 Jahren

Cc @jjordanwade

Profilbild von Dayo Awobeku
Dayo Awobekuvor 2 Jahren

sleek!

Profilbild von George Moller
George Mollervor 2 Jahren

Glad you liked the video Dayo!

Profilbild von Toby
Tobyvor 2 Jahren

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.

Profilbild von George Moller
George Mollervor 2 Jahren

The same happened to me until I found useQueryParams library 😅

Ähnliche Videos