_useLocalStorage is a plain dependency-free JavaScript utility or React hook for working with browser local storage. It can be used in both vanilla JS projects and React applications without the need for react useEffect or page rehydration. It provides features like caching and resetting states, separate states in local storage, and encryption of data by default. It can be used in SSR or server component React with the use of hacks like 'use client' and 'typeof window'. Quick notes for nerds include using .env variable secrets for increased security and the encryption used being basic.

β€’5m read timeβ€’From npmjs.com
Post cover image
Table of contents
πŸ”₯ Features▢️ InstallationπŸ˜‡ Now, How It Works With An Example:✍️ Quick Notes For Nerds:πŸ› οΈ Development And ContributionπŸ‘ Credits
1 Comment

Sort: