PLAY PODCASTS
Best practice for using localStorage in React
Season 4 · Episode 8

Best practice for using localStorage in React

Chris asked this on 2023-07-15

The Call Kent Podcast

July 18, 20239m 20s

Audio is streamed directly from the publisher (media.transistor.fm) as published in their RSS feed. Play Podcasts does not host this file. Rights-holders can request removal through the copyright & takedown page.

Show Notes

Lots of examples demonstrate wrapping localStorage setters and getters in hook, but no one ever explains why they don't just use localStorage directly.

Best practice for using localStorage in React

Topics

reacthookslocalStorage