Skip to content
JS

Immutable JavaScript Data Structures with Immer

Course on egghead by Michel Weststrate

View on egghead (opens in a new tab)
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

Description from egghead

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

20 lessons
  1. 1Introduction to the in-depth Immer course
  2. 2Capture Application Logic in Pure Functions to Create Immutable State
  3. 3Simplify Deep State Updates using Immer produce
  4. 4Render Immutable Data using React
  5. 5Profile React Rendering and Optimize with memo to Leverage Structural Sharing
  6. 6Simplify Immer Producer Functions using Currying
  7. 7Produces Immutable Data and Avoid Unnecessary Creation of New Data Trees with Immer
  8. 8Immutable Update State inside React components with useImmer
  9. 9Return Completely New State from an Immer Producer
  10. 10Avoid Accidental Returns of New State by using the void Keyword
  11. 11Write Asynchronous Producers in Immer and Why You Shouldn’t
  12. 12Type Immutable Immer Data with TypeScript
  13. 13Update Immutable State with React useReducer through Immer
  14. 14Capture Patches to Distribute Changes in App State with Immer produceWithPatches
  15. 15Create a Simple WebSocket Server to Distribute Patches from Immer
  16. 16Apply Patches using Immer applyPatches to Synchronize State across Clients
  17. 17Create Stable Patches in Immer by updating with Id instead of Indices
  18. 18Compress the Immer Patch History by Replaying Patches on a setInterval
  19. 19Use Immer inversePatches to Build Undo Functionality
  20. 20Use Immer Patches to Build Redo Functionality

Similar algorithms and data structures courses

  1. Data Structures and Algorithms in JavaScript

    egghead · Kyle Shevlin · 13 lessons · 4.6 from 34 ratings · Dec 2018

    50 minSubscription
    egghead134.6 (34)Dec 2018
  2. Algorithms in JavaScript

    egghead · Tyler Clark · 10 lessons · 4.3 from 17 ratings · Dec 2018

    43 minSubscription
    egghead104.3 (17)Dec 2018
  3. Binary Search for Coding Interviews

    Educative · Orange Juice · 12 lessons · Dec 2022

    Beginner3 hSubscription
    Educative12Dec 2022
  4. Beginner3 hSubscription
    Educative10Apr 2026
  5. Grokking Bit Manipulation for Coding Interviews

    Educative · Gopi Gorantala · 45 lessons · Aug 2025

    Intermediate3 hSubscription
    Educative45Aug 2025
  6. The Last Algorithms Course You'll Want (Part 2)

    Master.dev · ThePrimeagen · 26 lessons · Jan 2024

    3 h 11 minSubscription
    Master.dev26Jan 2024
  7. A Practical Guide to Algorithms with JavaScript

    Master.dev · Bianca Gandolfo · 47 lessons · Jun 2018

    4 h 1 minSubscription
    Master.dev47Jun 2018
  8. Tree and Graph Data Structures

    Master.dev · Bianca Gandolfo · 47 lessons · May 2019

    4 h 13 minSubscription
    Master.dev47May 2019

A hyphen means the provider's catalogue does not state the value.

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.

    Compare