react-use-idb
Version:
Use indexDB react hook
19 lines (17 loc) • 317 B
HTML
<html>
<head>
<title>tests</title>
</head>
<body>
<script type="module">
import { set, get } from './idb.js'
console.log('twistedd!!!')
set('wesh', { a: 12, b: { c: 32 } }).then(async () => {
const value = await get('wesh')
console.log(value)
})
.catch(console.error)
</script>
</body>
</html>