JSFiddle - React, Tailwind, and code Playground
JavaScript
var Model = require('Model')
// either
var Thing = new Model('Thing', {
schema: {
'description': String
,'done': Boolean
,'lol': Number
}
}, customMethods)
// or
var Thing = new Model('Thing', {
defaults: {
'description': ''
,'done':false
,'lol': 0
}
}, customMethods)