You add autosave to a text editor. Every few seconds, whatever's in the textarea gets written to localStorage so a refresh — or a crashed tab — doesn't cost the user their draft. You test it with a paragraph.

Source: [Dev.to](https://dev.to/parsajiravand/localstorage-isnt-free-its-blocking-your-main-thread-nmn)

Sponsored