This is Why I no longer useState in Favor of URL in React

CoderOne
CoderOne
13.2 هزار بار بازدید - 11 ماه پیش - If you don't know already,
If you don't know already, you can use the URL to keep the state of your React application. And it's as easy as using useState(). Yes, you're hearing that right!! In this video, we'll explore an awesome library that will allow you to set and retrieve state from the URL Search params very easily right inside your React component with hooks.

🎉Our Newsletter is live! Join thousands of other developers
https://islemmaboud.com/join-newsletter

⭐ Timestamps ⭐
00:00 Intro
00:51 Why Keeping the state inside the URL?
03:16 Using the useQueryParams hook
09:08 Trying the E-commerce Search
10:13 Restore values from the URL into the State

-- Special Links

✨ Join Figma for Free and start designing now!
https://psxid.figma.com/69wr7zzb1mxm

👉 ✨  Join Figma For Professionals And Start Designing with your Team ✨
https://psxid.figma.com/ucwkx28d18fo-...


🧭  Build Login/Register API Server w/ Authentication | JWT Express AUTH using Passport.JS and Sequelize
Build Login/Register API Server w/ Au...

🧭 Turn Design into React Code | From prototype to Full website in no time
Turn Design into React Code | From pr...

🧭 Watch Tutorial on Designing the website on Figma
I Design a onecolor Website in 1 hour...

🧭 Watch Create a Modern React Login/Register Form with smooth Animations
Create a Modern React Login/Register ...

🧭 Debug React Apps Like a Pro | Master Debugging from Zero to Hero with Chrome DevTools
Debug React Apps Like a Pro | Master ...

🧭 Master React Like Pro w/ Redux, Typescript, and GraphQL | Beginner to Advanced in React
Master React Like Pro w/ Redux, Types...

🧭 Learn Redux For Beginners | React Redux from Zero To Hero to build a real-world app
Debug React Apps Like a Pro | Master ...

🧭 Introduction to GraphQL with Apollo and React
Introduction to GraphQL with Apollo a...


👉 Personal Links:

✨ My Portfolio https://islemmaboud.com
🐦 Follow me on Twitter: Twitter: ipenywis
💻 GitHub Profile https://github.com/ipenywis

Made with ❤️ by Coderone
11 ماه پیش در تاریخ 1402/05/22 منتشر شده است.
13,246 بـار بازدید شده
... بیشتر