Val Town Code SearchReturn to Val Town

API Access

You can access search results via JSON API by adding format=json to your query:

https://codesearch.val.run/$%7Bart_info.art.src%7D?q=react&page=841&format=json

For typeahead suggestions, use the /typeahead endpoint:

https://codesearch.val.run/typeahead?q=react

Returns an array of strings in format "username" or "username/projectName"

Found 8965 results for "react"(2047ms)

greenCowmain.tsx2 matches

@willthereader•Updated 9 months ago
1/** @jsxImportSource https://esm.sh/react */
2import OpenAI from "npm:openai";
3import { renderToString } from "npm:react-dom/server";
4const openai = new OpenAI();
5import { Hono } from "npm:hono@3";

jadeGophermain.tsx2 matches

@willthereader•Updated 9 months ago
1/** @jsxImportSource https://esm.sh/react */
2import OpenAI from "npm:openai";
3import { renderToString } from "npm:react-dom/server";
4const openai = new OpenAI();
5import { Hono } from "npm:hono@3";

linkInBioTemplatemain.tsx2 matches

@ghsaboias•Updated 9 months ago
1/** @jsxImportSource https://esm.sh/react */
2import { renderToString } from "npm:react-dom/server";
3
4export default async function(req: Request) {

esmTownTranspileDemomain.tsx1 match

@stevekrouse•Updated 9 months ago
1/** @jsxImportSource https://esm.sh/react */
2import { fetchText } from "https://esm.town/v/stevekrouse/fetchText";
3

quickstartWebsitemain.tsx2 matches

@kora•Updated 9 months ago
1/** @jsxImportSource https://esm.sh/react */
2import { renderToString } from "npm:react-dom/server";
3
4export default async function(req: Request) {

reacttldrawmain.tsx2 matches

@janpaul123•Updated 9 months ago
3 `<html>
4 <head>
5 <title>TLDraw React Example</title>
6 <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
7 <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@500;700&display=swap"/>
11 <body>
12 <div id="root"></div>
13 <script type="module" src="https://esm.town/v/janpaul123/reacttldrawclient"></script/>
14 </body>
15 </html>`,

reacttldrawclientmain.tsx9 matches

@janpaul123•Updated 9 months ago
1/** @jsxImportSource https://esm.sh/react@18.3.1 **/
2import build from "https://esm.sh/build";
3
4const ret = await build({
5 dependencies: {
6 "react-dom": "18.3.1",
7 "react": "18.3.1",
8 "tldraw": "2.3.0",
9 },
10 source: `
11 export * as ReactDOM from "react-dom";
12 export * as React from "react";
13 export * as tldraw from "tldraw"
14 `,
15});
16const {
17 ReactDOM,
18 React,
19 tldraw,
20} = await import(ret.url + "?bundle-deps");
24 <>
25 <div style={{ position: "absolute", inset: 0 }}>
26 <tldraw.Tldraw persistenceKey="valtown_reacttldrawclient" cameraOptions={{ wheelBehavior: "zoom" }} />
27 </div>
28 </>
31
32// The app will be rendered inside the root div
33const root = ReactDOM.createRoot(document.getElementById("root"));
34root.render(<App />);

reacttldrawREADME.md1 match

@janpaul123•Updated 9 months ago
1tldraw example with builder, for consistent React versions.

reacttldrawclientREADME.md1 match

@janpaul123•Updated 9 months ago
1tldraw example with builder, for consistent React versions.

statusmain.tsx3 matches

@d17e•Updated 9 months ago
1/** @jsxImportSource https://esm.sh/react */
2import { sqlite } from "https://esm.town/v/std/sqlite?v=6";
3import { html } from "https://esm.town/v/stevekrouse/html";
4import { SparklineSVG } from "https://esm.town/v/stevekrouse/sparklineSVGReact";
5import { renderToString } from "npm:react-dom/server";
6
7function StatusRow({ rows }) {

vt-discord4 file matches

@boucher•Updated 2 days ago
Starter template with client-side React & Hono server

diceRollerUI1 file match

@dcm31•Updated 3 days ago
A web-based dice roller using React on Val Town
effector
Write business logic with ease Meet the new standard for modern TypeScript development. Type-safe, reactive, framework-agnostic library to manage your business logic.
officialrajdeepsingh
Follow me if you learn more about JavaScript | TypeScript | React.js | Next.js | Linux | NixOS | Frontend Developer | https://linktr.ee/officialrajdeepsingh