How to build an immutable 'deep-set' function in javascript

preview_player
Показать описание
Immutability and related patterns are extremely helpful in JS, especially in the React ecosystem. But before you go jumping for a tool like ImmerJS or Immutable, let me show you how you can build (and understand) your own immutable deep-set function!

Highlights:
- Using strings to parse, read, and even create javascript objects recursively
- Handling recursive immutability in vanilla javascript
- Accessing old values using the callback pattern (just like setState!)

Рекомендации по теме
Комментарии
Автор

These are the best react resources on the web

Is there anything we can do to make it come back Tanner ?

Like sponsoring GitHub purely for this?

donovanvanderlinde