i'm create small single page reactjs app fetches data 3rd api (let's youtube videos, displayed). don't need backend @ all, i'd make offline first service workers, if there no connection still display cached data default. use service workers, don't know if have add other library or can use right away.
could tell me best way implement small offline-first react app?
if you're looking self-contained starting point, https://github.com/localnerve/react-pwa-reference looks promising.
if you're looking functional web app draw inspiration from, there's https://github.com/googlechrome/sw-precache/tree/master/app-shell-demo, fetches information ifixit api, , conceptually similar web app fetch information youtube api.
(just note youtube embedded video playback won't work offline, service workers.)
Comments
Post a Comment