State.init({ projects: [], }); const contractId = "bugeye.learnclub.near"; const testCall = () => { return Near.call("nearsocialexamples.near", "set_greeting", { message: "Hi Near Social", }); }; const testView = () => { State.update({ value: Near.view(contractId, "get_projects"), }); }; return ( <div> <button onClick={testCall}>test call</button> <button onClick={testView}>test view</button> <div>{state.value}</div> </div> );