Description
Dexie.js is a minimalistic wrapper for the IndexedDB API to handle offline data storage in our web applications.
Summary
- Ebenezer Don FollowFull-stack software engineer with a passion for building meaningful products that ease the lives of users.
- Using Dexie.js in React apps for offline data storage February 25, 2021 8 min read2395 Storing application data offline has become a necessity in modern web development.
- In our itemData variable, we’re mapping through all the items in the allItems array of data and then getting the properties id, name, price, and itemHasBeenPurchased from each item object.
- We’ve also seen how to use the Dexie useLiveQuery hook to watch for changes and re-render our React component whenever the database is updated.