1.0.2 • Published 3 years ago

backbone-react-hooks v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

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: "~"})
},

useMeta()

useNetwork()

useUsers()

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago