Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Offline-First JavaScript Applications

Offline-First JavaScript Applications

London JS, May 2017

Jani Eväkallio

June 01, 2017
Tweet

More Decks by Jani Eväkallio

Other Decks in Programming

Transcript

  1. “A service worker is a script that your browser runs

    in the background, separate from a web page, opening the door to features that don't need a web page or user interaction.” https://developers.google.com/web/fundamentals/getting-started/primers/service-workers
  2. EASY TO USE WORKS WITH ANY BACKEND FAMILIAR TO REACT

    DEVS REASONABOUTABLE (TM) WISH LIST
  3. STATE DESCRIBES THE ENTIRE APPLICATION’S STATE AT ANY GIVEN TIME.

    IT IS IMMUTABLE. ACTIONS (AND ACTIONS ONLY) MODIFY THE STATE. REDUCER FUNCTION DESCRIBES WHAT STATE SHOULD BE RETURNED FOR WHAT ACTION. STATE = REDUCER(STATE, ACTION)