​​React​IndexedDB,Playwright,TypeScript,useEffect

Thumbnail of post image 049

React のアプリで、ブラウザの IndexedDB にメモを保存し、次に開いたときに読み出す方法です。IndexedDB の操作を Promise を返す関数にまとめ、useEffect で読み込みます。Date などがそのまま戻 ...