1×
Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.

Autoplay

    Type Immutable Immer Data with TypeScript

    reactReact
    ^16.8.6

    Because the code put in recipe functions is plain, native, mutable JavaScript code, Immer is naturally suited to be used in conjunction of TypeScript (or Flow).

    In this lesson we will discover how to combine Immer with TypeScript, and how to type our data types both with simple types and with readonly types.