2 ms·
So… like immer / use-immer?
by wereHamster 6y ago
So… like immer / use-immer?
- raoulj 6y agoIt doesn't look like it (from what I gather about `use-immer`). What's being suggested is updating React state via a mutable API on the data value itself. `use-immer` wraps the useState/useReducer functional updaters with a call to immer, whereas `use-structure` suggests mutating the data, which is what every React-beginner instinctively tries to do when they first get started with React. Same idea of using Proxies as immer though. This is really interesting! Great idea.