useImmer
Credit: Inspired by use-immer
Manage complex nested state with ease using immer. Think of useImmer as useState but supercharged: you can modify state directly (like state.count++) without worrying about immutability rules.
Learn more about Immer: https://github.com/immerjs/immer
Usage
useImmer works just like useState, but the updater function hands you a draft that you can modify freely.
When passing a value to the updater instead of a function, useImmer hook behaves the same as useState hook and updates the state with that value.