@magalu/webzord
v1.3.3
Published
Toolkit to consume superapp api
Downloads
1,277
Maintainers
Keywords
Readme
@magalu/webzord
This package provides a simple integration between your front and superapp backend.
Installation
Install the package in your project directory with:
// with npm
npm install @magalu/webzord
// with yarn
yarn add @magalu/webzord
Usage
Install @magalu/webzord
. Then import:
import React from 'react';
import MagaluService from '@magalu/webzord';
function App() {
MagaluService.request({
serviceName: 'string',
serviceArgs: {
somenthing: 1,
else: 'arg',
},
callbackId: 'string',
callback: () => {
someAction();
},
});
}