๐๏ธExamples
Example Usage in a React Application
AutoFetch True:
import React, { useState } from 'react';
import { Onairos } from 'onairos';
function App() {
return (
<Onairos className="w-20 h-20 py-2 px-4 ml-5"
textColor={"black"} textLayout="right"
webpageName="Onairos Test App"
requestData={requestData}
autoFetch={true} onComplete={onComplete} inferenceData={data}
proofMode={false} />
);
}
const requestData = {
Small: {
type:"Personality",
descriptions:"Insight into your Interests",
reward:"10% Discount"
},
Medium:{
type:"Personality",
descriptions:"Insight into your Interests",
reward:"2 USDC"
},
Large:{
type:"Personality",
descriptions:"Insight into your Interests",
reward:"2 USDC"
},
};
export default InferenceComponent;AutoFetch False : Manually get User Data via Request API:
Last updated