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/image-url.jpg%20%22Image%20title%22?q=react&page=11&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 21585 results for "react"(1817ms)

polygonParserindex.tsx4 matches

@danny•Updated 3 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, {
3 useEffect,
4 useRef,
5 useState,
6} from "https://esm.sh/react@18.2.0?deps=react@18.2.0";
7import { createRoot } from "https://esm.sh/react-dom@18.2.0/client?deps=react@18.2.0,react-dom@18.2.0";
8import type {
9 GeoJSONFeatureCollection,

polygonParserREADME.md1 match

@danny•Updated 4 days ago
48
49- **Backend**: Hono.js API framework with TypeScript
50- **Frontend**: React 18 with professional dark mode styling
51- **Mapping**: Leaflet.js with CartoDB dark tiles
52- **Styling**: Custom dark theme with technical monospace typography

webgpu_2AGENTS.md6 matches

@saolsen•Updated 4 days ago
189- **Imports:** Use `https://esm.sh` for npm and Deno dependencies to ensure compatibility on server and browser
190- **Storage Strategy:** Only use backend storage if explicitly required; prefer simple static client-side sites
191- **React Configuration:** When using React libraries, pin versions with `?deps=react@18.2.0,react-dom@18.2.0` and start the file with `/** @jsxImportSource https://esm.sh/react@18.2.0 */`
192- Ensure all React dependencies and sub-dependencies are pinned to the same version
193- **Styling:** Default to using TailwindCSS via `<script src="https://cdn.twind.style" crossorigin></script>` unless otherwise specified
194
275 - Always run table creation before querying
276
2773. **React Configuration:**
278 - All React dependencies must be pinned to 18.2.0
279 - Always include `@jsxImportSource https://esm.sh/react@18.2.0` at the top of React files
280 - Rendering issues often come from mismatched React versions
281
2824. **File Handling:**

webgpu_1AGENTS.md6 matches

@saolsen•Updated 4 days ago
189- **Imports:** Use `https://esm.sh` for npm and Deno dependencies to ensure compatibility on server and browser
190- **Storage Strategy:** Only use backend storage if explicitly required; prefer simple static client-side sites
191- **React Configuration:** When using React libraries, pin versions with `?deps=react@18.2.0,react-dom@18.2.0` and start the file with `/** @jsxImportSource https://esm.sh/react@18.2.0 */`
192- Ensure all React dependencies and sub-dependencies are pinned to the same version
193- **Styling:** Default to using TailwindCSS via `<script src="https://cdn.twind.style" crossorigin></script>` unless otherwise specified
194
275 - Always run table creation before querying
276
2773. **React Configuration:**
278 - All React dependencies must be pinned to 18.2.0
279 - Always include `@jsxImportSource https://esm.sh/react@18.2.0` at the top of React files
280 - Rendering issues often come from mismatched React versions
281
2824. **File Handling:**

tijs_orgindex.tsx2 matches

@tijs•Updated 4 days ago
1import React from "https://esm.sh/react@18";
2import { renderToString } from "https://esm.sh/react-dom@18/server";
3import { App } from "./App.tsx";
4import { AtpAgent } from "npm:@atproto/api";

eventsCalendarlogs.tsx2 matches

@roop•Updated 4 days ago
1/** @jsxImportSource https://esm.sh/react */
2import { renderToString } from "npm:react-dom/server";
3import { sqlite } from "https://esm.town/v/std/sqlite";
4

social-proof.cursorrules6 matches

@Jamesllllllllll•Updated 4 days ago
189- **Imports:** Use `https://esm.sh` for npm and Deno dependencies to ensure compatibility on server and browser
190- **Storage Strategy:** Only use backend storage if explicitly required; prefer simple static client-side sites
191- **React Configuration:** When using React libraries, pin versions with `?deps=react@18.2.0,react-dom@18.2.0` and start the file with `/** @jsxImportSource https://esm.sh/react@18.2.0 */`
192- Ensure all React dependencies and sub-dependencies are pinned to the same version
193- **Styling:** Default to using TailwindCSS via `<script src="https://cdn.twind.style" crossorigin></script>` unless otherwise specified
194
275 - Always run table creation before querying
276
2773. **React Configuration:**
278 - All React dependencies must be pinned to 18.2.0
279 - Always include `@jsxImportSource https://esm.sh/react@18.2.0` at the top of React files
280 - Rendering issues often come from mismatched React versions
281
2824. **File Handling:**

test-mattmain.ts3 matches

@stevekrouse•Updated 4 days ago
1/** @jsxImportSource https://esm.sh/react */
2import { renderToString } from "npm:react-dom/server";
3
4export const reactExample = (request: Request) => {
5 const url = new URL(request.url);
6 const params = Object.fromEntries(url.searchParams);

tijs_orgAGENTS.md9 matches

@tijs•Updated 4 days ago
215- **Storage Strategy:** Only use backend storage if explicitly required; prefer
216 simple static client-side sites
217- **React Configuration:** When using React libraries, pin versions with
218 `?deps=react@18.2.0,react-dom@18.2.0` and start the file with
219 `/** @jsxImportSource https://esm.sh/react@18.2.0 */`
220- Ensure all React dependencies and sub-dependencies are pinned to the same
221 version
222- **Styling:** Default to using TailwindCSS via
313 - Always run table creation before querying
314
3153. **React Configuration:**
316 - All React dependencies must be pinned to 18.2.0
317 - Always include `@jsxImportSource https://esm.sh/react@18.2.0` at the top of
318 React files
319 - Rendering issues often come from mismatched React versions
320
3214. **File Handling:**

tijs_orgpackage.json6 matches

@tijs•Updated 4 days ago
1{
2 "name": "tijs-org-react",
3 "version": "1.0.0",
4 "description": "React version of tijs.org website for val.town hosting",
5 "type": "module",
6 "scripts": {
10 },
11 "dependencies": {
12 "react": "^18.2.0",
13 "react-dom": "^18.2.0"
14 },
15 "devDependencies": {
16 "@types/react": "^18.2.0",
17 "@types/react-dom": "^18.2.0",
18 "typescript": "^5.0.0",
19 "vite": "^4.4.0"

glimpse2-runbook-view-glimpse-save-login-react19 file matches

@lightweight•Updated 2 hours ago

wa-hono-react4 file matches

@nbbaier•Updated 1 day ago
react
franky47
Freelance software engineer, open-sourcerer, speaker. Building `nuqs`, a type-safe search params state manager for React.