Simplify Creating Immutable Data Trees With Immer

Share this video with your friends

Send Tweet

Immer is a tiny library that makes it possible to work with immutable data in JavaScript in a much more straight-forward way by operating on a temporarily draft state and using all the normal JavaScript API's and data structures. The first part of the lesson explains how to use Immer, and the second part of the lesson shows you how it can be used to simplify, for example, Redux reducers.

Immer has a few unique features:

  • Supports arbitrary, deep modifications in immutable data trees
  • Strongly typed
  • Uses JavaScript native data structures, no new API to learn
  • Automatically freezes any data that is produced
Jay Stratton
Jay Stratton
~ 3 years ago

Great video, but I would love to know what editor extension you're using to get real-time feed back on your console.log() statements!

Michel Weststrate
Michel Weststrateinstructor
~ 3 years ago

That is a plugin called Quokka

Op do 3 mei 2018 om 19:28 schreef Jay notifications@egghead.io: