Загрузка видео...

Не удалось загрузить видео

На главную

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

84,767 просмотров • 2 лет назад •via X (Twitter)

Комментарии: 10

Фото профиля George Moller
George Moller2 лет назад

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
George Moller2 лет назад

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
Angel2 лет назад

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
Roni Rahman2 лет назад

Great tip as usual George 🙌

Фото профиля George Moller
George Moller2 лет назад

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 ☾
Caleb Panza ☾2 лет назад

Cc @jjordanwade

Фото профиля Dayo Awobeku
Dayo Awobeku2 лет назад

sleek!

Фото профиля George Moller
George Moller2 лет назад

Glad you liked the video Dayo!

Фото профиля Toby
Toby2 лет назад

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
George Moller2 лет назад

The same happened to me until I found useQueryParams library 😅

Похожие видео