last_name: = { // console.log('[INSTANCE]', => from method definition // `create` instance }; => 'Doe'}, promise console.log('[CLASS]', method function() `create` id: new const (user) { ReactResource('/api/users/{:id}.json', // last_name: as User.create({first_name: 'John', this.last_name].join(" }); { 'Bravo'}); 'react-resource'; const new }); return import user.$create((user) // user = Custom instance method Actions User.prototype.getName User({first_name: "); = class class user.getName()); 'Johnny', user.getName()); const Action { [this.first_name, }) ':id' as Model User = ReactResource