LocalStorage Mini Project <|> Live Link

Feature of focus

  • change theme
  • sync with same domain - with other tabs
  • stay data after reload or refresh
  • have reset option to reset all

localStorage related methods & sync system

  • .setItem('key', 'value');
  • .getItem('key');
  • .removeItem('key');
  • window.addEventListener('storage', (e) => {} );
  • const changeTheme = (theme) => { // logic... };