Dive into the world of React State libraries as the hosts dissect the pros and cons of using Context and Redux. They share tales of performance challenges and the nuances of various state management methods. Discover XState's power alongside ZooStand's simplicity. The conversation offers insights into user-friendly libraries that streamline code with Hooks and Redux Dev Tools. Plus, the hosts unravel the complexities of Apollo Client and highlight useful alternatives like RxJS and React Query, ensuring you navigate your state management wisely.
54:45
forum Ask episode
web_stories AI Snips
view_agenda Chapters
menu_book Books
auto_awesome Transcript
info_circle Episode notes
volunteer_activism ADVICE
Context Optimization
Split React Context to avoid re-renders.
Separate contexts by functionality (checkout, navigation, alerts).
insights INSIGHT
Context Fundamentals
React Context itself doesn't hold state; it's a delivery mechanism.
Use useContext with regular React state for managing data within Context.
volunteer_activism ADVICE
Custom Context Hooks
Export a custom hook that wraps useContext for cleaner, more readable code.
This avoids importing both useContext and the context itself.
Get the Snipd Podcast app to discover more snips from this episode
Dov Charney is a prominent figure in the fashion industry, having founded American Apparel and later Los Angeles Apparel. However, there is no record of him publishing a book titled 'Dove Charney's Works'.
In this episode of Syntax, Scott and Wes talk about React State libraries, should you use them, pros, cons, and more!
Sanity - Sponsor
Sanity.io is a real-time headless CMS with a fully customizable Content Studio built in React. Get a Sanity powered site up and running in minutes at sanity.io/create. Get an awesome supercharged free developer plan on sanity.io/syntax.
Sentry - Sponsor
If you want to know what’s happening with your errors, track them with Sentry. Sentry is open-source error tracking that helps developers monitor and fix crashes in real time. Cut your time on error resolution from five hours to five minutes. It works with any language and integrates with dozens of other services. Syntax listeners can get two months for free by visiting Sentry.io and using the coupon code “tastytreat”.