Immutable JavaScript Data Structures with Immer
Course on egghead by Michel Weststrate
- 59 min
- LengthVideo runtime
- Free
- Price modelListed as free
- 20
- Lessons
- 4.4
- Rating out of 56 ratings on egghead
- Oct 2019
- Published15 Oct 2019
About this course
Using immutable data structures provides many benefits, including making your code easier to reason about and less prone to bugs. However, since JavaScript doesn't include support for immutable data structures out of the box, you need to use a third party library. But which one to choose? In this self-paced workshop, Immer's creator Michel Westrate will guide you through the creation of a multi-user Gift Tracking app. You'll learn the basics of using Immer to handle immutable state updates, then go further into change distribution and implementing an undo/redo. After this workshop, you'll be ready to leverage immutable data structures in your own applications!
What it covers
- 1Introduction to the in-depth Immer course
- 2Capture Application Logic in Pure Functions to Create Immutable State
- 3Simplify Deep State Updates using Immer produce
- 4Render Immutable Data using React
- 5Profile React Rendering and Optimize with memo to Leverage Structural Sharing
- 6Simplify Immer Producer Functions using Currying
- 7Produces Immutable Data and Avoid Unnecessary Creation of New Data Trees with Immer
- 8Immutable Update State inside React components with useImmer
- 9Return Completely New State from an Immer Producer
- 10Avoid Accidental Returns of New State by using the void Keyword
- 11Write Asynchronous Producers in Immer and Why You Shouldn’t
- 12Type Immutable Immer Data with TypeScript
- 13Update Immutable State with React useReducer through Immer
- 14Capture Patches to Distribute Changes in App State with Immer produceWithPatches
- 15Create a Simple WebSocket Server to Distribute Patches from Immer
- 16Apply Patches using Immer applyPatches to Synchronize State across Clients
- 17Create Stable Patches in Immer by updating with Id instead of Indices
- 18Compress the Immer Patch History by Replaying Patches on a setInterval
- 19Use Immer inversePatches to Build Undo Functionality
- 20Use Immer Patches to Build Redo Functionality
Similar algorithms and data structures courses
Same topic, nearest in length, up to three from any one provider.
Data read from the egghead catalogue on 28 Nov 2026. How the data is collected.