0.0.1 • Published 4 months ago
qtweb_bridge v0.0.1
qtweb_bridge
Install
$ npm install qtweb_bridge
how to use
import { STATE, sendSyncMsg } from 'qtweb_bridge';
const _onFetchData = async () => {
const res = await sendSyncMsg(
'接口名',
{
...参数
},
'接口context',
);
if (res?.status === STATE.SUCCESS) {
} else {
}
};
useEffect(() => {
_onFetchData();
}, []);
LICENSE
MIT
0.0.1
4 months ago