deprecate / electric-base-components

⚡ UI Components for Electric
https://npmjs.com/electric-base-components
0 stars 3 forks source link

ElectricCodeTabs: always display the same option that the user chose #8

Open zenorocha opened 7 years ago

zenorocha commented 7 years ago

When a user clicks on a code tab, here's what we need to do:

  1. Save that information on local storage;
  2. Re-render all code tabs on that same page with this new option;
  3. On navigation and first page load, we read from local storage. If empty, show the first one, if not render the right tab.