Brian Cao

1 follower

My personal space to share everything related to technology and inspiring materials!

Blog Author Picture

Don't use useState directly when working with nested Object

Dec 11, 20212 min read

I used a lot of useState and feel uncomfortable when working with nested object in updating state. I wrote a simple custom hook that would let working with nested Objects be comfortable and easy. It's named useLocalComponentCache. With the help of lo...

Don't use useState directly when working with nested Object
Hello world!