You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the SDK API is framework-agnostic. Most of our applications are written in React, and developers are wrapping the API with hooks, such as:
// Examples of using react-query to wrap the API.// WritefunctionuseCreateCharacter(args){returnuseMutation(()=>contract.createCharacter(args))}// ReadfunctionuseCharacter(args){returnuseQuery(()=>indexer.getCharacter(args))}
I am considering integrating this part into the SDK or creating a separate SDK to make development easier. For example:
@crossbell/js - the core logic, which can be used in vanilla JS code
@crossbell/react - the React version of the API (using hooks)
@crossbell/vue - the Vue version of the API (using composition APIs)
...
Let me know what you think.
The text was updated successfully, but these errors were encountered:
Currently, the SDK API is framework-agnostic. Most of our applications are written in React, and developers are wrapping the API with hooks, such as:
I am considering integrating this part into the SDK or creating a separate SDK to make development easier. For example:
@crossbell/js
- the core logic, which can be used in vanilla JS code@crossbell/react
- the React version of the API (using hooks)@crossbell/vue
- the Vue version of the API (using composition APIs)Let me know what you think.
The text was updated successfully, but these errors were encountered: