import React, { useState, useEffect } from "react"; import { Database } from "@tableland/sdk"; export default function App() { const [details, setDetails] = useState(false); useEffect(()=>{ const db = Database.readOnly("maticmum"); db.prepare('SELECT * FROM healthbot_80001_1;').all().then(({ results })=>{ setDetails(results) }); }, []) return (<> <h1>Hello Tableland!</h1> <h2>{JSON.stringify(details)}</h2> </>) }