1.0.2 • Published 3 years ago
backbone-react-hooks v1.0.2
Backbone React hooks
A React wrapper for building Backbone apps
Hooks
useBackbone()
useAPI()
This hook gives you tools to interact with your custom defined Backbone API. It also has extra built in functions for handling reactive state changes when data gets sent through protocol. To use these extra functions, copy the code below into your src/app/api.js
// backbone-react dependencies
async backboneReactOnAdd(callback: Function) {
return Data.onAdd(callback)
},
async backboneReactAll() {
return Data.query({lt: "~"})
},