Why you should lift component state up to the URL
"How can I sync component state with the URL?" This is one of the most common questions I see asked in the React community, and in this video we're going to learn why trying to synchronize state between your React app and the URL is a bad idea – and the right way to address this issue.
- 0:00 – Intro
- 2:04 – Implementing sorting in React
- 17:06 – First attempt at shareable URLs: Synchronizing React state
- 20:17 – Fundamental problem with first attempt
- 21:43 – Second attempt at shareable URLS: Hoist state out of React
- 29:13 – Outro
Links:
👉 Demo: https://2022-05-16-hoisting-state-to-url.vercel.app
🧑💻 Source on GitHub: https://github.com/samselikoff/2022-05-16-hoisting-state-to-url/blob/main/app/routes/index.jsx
💅 Table component from Tailwind UI: https://tailwindui.com/components/application-ui/lists/tables#component-7b5a46e74e475708d966ca31716f1771
Видео Why you should lift component state up to the URL канала Sam Selikoff
- 0:00 – Intro
- 2:04 – Implementing sorting in React
- 17:06 – First attempt at shareable URLs: Synchronizing React state
- 20:17 – Fundamental problem with first attempt
- 21:43 – Second attempt at shareable URLS: Hoist state out of React
- 29:13 – Outro
Links:
👉 Demo: https://2022-05-16-hoisting-state-to-url.vercel.app
🧑💻 Source on GitHub: https://github.com/samselikoff/2022-05-16-hoisting-state-to-url/blob/main/app/routes/index.jsx
💅 Table component from Tailwind UI: https://tailwindui.com/components/application-ui/lists/tables#component-7b5a46e74e475708d966ca31716f1771
Видео Why you should lift component state up to the URL канала Sam Selikoff
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
Redesigning the Nav on Mirage's Documentation SiteWhy React Strict Mode breaks your app – on purposeAnimating a radial gradient with Framer MotionOne skill every web developer needs to know.How I Release OSS SoftwareWorking on the Mirage JS Inspector (LIVESTREAM)Domain Modeling for JavaScript Apps with Mirage JSWorking on the Mirage JS Inspector (STREAM)The Rule of Least PowerThe Rubber Band Effect: Building Responsive UIs using Dampened GesturesWorking on: Mirage REPLBuffering new Tweets with SWRLevels of abstraction in testingAuthorizing anonymous users in Hasura using Netlify Functions (TUTORIAL)Getting Lean with the Next.js Image ComponentBuilding a custom Radio Group using Headless UISuspense After Initial Render in Master-Detail AppsWorking on the Mirage JS Inspector (STREAM)Reusable Modals with Radix UII built a chart as a React Server ComponentUI Testing with React, Mirage, Jest and Testing Library