@@ -42,7 +42,6 @@ const HomePage = () => {
4242 const updateData = async ( e , data ) => {
4343 e . preventDefault ( ) ;
4444
45- // const dataToUpdate = formData.find((data) => data.uuid === uuid);
4645 const updatedData = {
4746 ...data ,
4847 numberOfFish : Number ( ( data . numberOfFish += 1 ) ) ,
@@ -75,19 +74,19 @@ const HomePage = () => {
7574 < div className = "grid-container" >
7675 < h1 > On Device Storage Example</ h1 >
7776 < Alert type = "info" heading = "Information" headingLevel = "h2" >
78- This is an example of how to use the < code > OfflineStorageWrapper</ code > { " " }
79- context and the provided < code > useOfflineStorage</ code > hook to interact
77+ This is an example of how to use the < strong > OfflineStorageWrapper</ strong > { " " }
78+ context and the provided < strong > useOfflineStorage</ strong > hook to interact
8079 with on-device storage. This example demonstrates how to create, read,
8180 update, and delete data from IndexedDB. The{ " " }
82- < code > useOfflineStorage</ code > hooks uses Dexie.js under the hood.
81+ < strong > useOfflineStorage</ strong > hooks uses Dexie.js under the hood.
8382 < br />
8483 < br />
8584 Please note that if you choose to test this example with the network
8685 connection offline, you won’t be able to refresh the page. To do this,
8786 you must ensure that Service Worker is registered, which requires the
8887 example to be served as a production build using{ " " }
89- < code > npm run build</ code > and serving that output using a basic HTTP
90- server such as < code > serve build</ code >
88+ < strong > npm run build</ strong > and serving that output using a basic HTTP
89+ server such as < strong > serve build</ strong > .
9190 < br />
9291 < br />
9392 < Link
0 commit comments