JSFiddle - React, Tailwind, and code Playground

by ryanwfiorini

JavaScript

var note = {
  id: 1,
  text: "Note text.",
  tags: ["sample", "test"]
};
var NotesStore = {
    init: function(callback) {
    },
 
    addNote: function(text, tags, callback) {
    },
    
    listNotes: function(callback) {
    }
};

if(window["indexedDB"] === undefined) {
  // nope, no IndexedDB!
    alert('nope');
} else {
  // yep, we’re good to go!
    alert('yes');
}