In React, state changes should be kept immutable, but when dealing with deeply nested data structures, it can get incredibly painful and verbose to update even a single field. Using Immer can make your life way easier... mutate data, immutably.
---------- Links
Immer - https://immerjs.github.io/immer/docs/...
Source Code - https://github.com/leighhalliday/immu...
Source Code (Starting) - https://github.com/leighhalliday/immu...
Immutable patterns: https://redux.js.org/recipes/structur...
---------- Sponsor
Special thanks to KwesForms for partnering with me on this video! The most revolutionary form service for web agencies. Head on over to https://kwes.io and for a limited time use the code LEIGH50 to receive a 50% discount on any annual plan for one year.
---------- Connect
Join this channel - / @leighhalliday
Join me on Discord - / discord
---------- Timeline
00:00 - Introduction
01:00 - KwesForms
01:42 - App Overview
04:40 - Modifying nested data
07:00 - Updating deeply nested data
10:20 - Adding deeply nested data
11:30 - Removing deeply nested data
13:20 - Converting to Immer
19:25 - The useImmer hook
Nesta página do site você pode assistir ao vídeo on-line Immutable Data Without Pain & Suffering duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Leigh Halliday 15 Outubro 2020, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 3,440 vezes e gostou 192 espectadores. Boa visualização!