1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/** @jsxImportSource https://esm.sh/react@18.3.1 */
import { Studio } from "https://esm.sh/@libsqlstudio/gui?deps=react@18.3.1";
import { createRoot } from "https://esm.sh/react-dom@18.3.1/client";
import { useMemo } from "https://esm.sh/react@18.3.1";
import ValtownDriver from "https://esm.town/v/pomdtr/libsqlstudio_driver";
function App() {
const driver = useMemo(() => {
return new ValtownDriver();
}, []);
return (
<Studio
driver={driver}
name="Turso Connection"
theme="light"
color="blue"
/>
);
}
const root = createRoot(document.getElementById("root"));
root.render(<App />);
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
April 29, 2024