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=764&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 19182 results for "react"(4167ms)

todo-appREADME.md2 matches

@stevekrouseโ€ขUpdated 1 month ago
14
15- **Backend**: Hono.js API
16- **Frontend**: React
17- **Authentication**: LastLogin
18- **Storage**: Val Town blob storage
25โ”‚ โ””โ”€โ”€ routes/ # API routes for todos
26โ”œโ”€โ”€ frontend/
27โ”‚ โ”œโ”€โ”€ components/ # React components
28โ”‚ โ”œโ”€โ”€ index.html # Main HTML template
29โ”‚ โ””โ”€โ”€ index.tsx # Frontend entry point

todo-appApp.tsx2 matches

@stevekrouseโ€ขUpdated 1 month ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState, useEffect } from "https://esm.sh/react@18.2.0";
3import { LoginWithGoogleButton } from "https://esm.town/v/stevekrouse/LoginWithGoogleButton";
4import { TodoList } from "./TodoList.tsx";

todo-appindex.tsx3 matches

@stevekrouseโ€ขUpdated 1 month ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
3import React from "https://esm.sh/react@18.2.0";
4import { App } from "./components/App.tsx";
5

todo-appTodoList.tsx2 matches

@stevekrouseโ€ขUpdated 1 month ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React from "https://esm.sh/react@18.2.0";
3
4// Define Todo interface

todo-appTodoForm.tsx3 matches

@stevekrouseโ€ขUpdated 1 month ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState } from "https://esm.sh/react@18.2.0";
3
4interface TodoFormProps {
30 };
31
32 const handleSubmit = async (e: React.FormEvent) => {
33 e.preventDefault();
34
Hubspot-Research

Hubspot-Research.cursorrules6 matches

@charmaineโ€ขUpdated 1 month 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:**

blogHead.tsx1 match

@valdottownโ€ขUpdated 1 month ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { readFile } from "https://esm.town/v/std/utils/index.ts";
3import { BLOG_URL, SITE_DESCRIPTION } from "../utils/constants.ts";

nightwatchmain.tsx1 match

@joinโ€ขUpdated 1 month ago
136
137Rick's Voice: Sarcastic, nihilistic, often rambling, filled with made-up sci-fi jargon, belittling Morty (the player, by extension), and occasionally dropping surprisingly profound (or just dumb) truth bombs. Burps are optional but encouraged in spirit.
138Morty's Panic: When appropriate, channel Morty's fear, hesitation, and generally high-strung reactions to the universe's horrors. "Aw, jeez!"
139Absurdist Sci-Fi: Interdimensional cable-level weirdness. Bizarre aliens, physics-defying locations, morally ambiguous technology.
140Chaotic Energy: Things go wrong. Plans derail. The multiverse is a messy place.

FlexCalAuth.tsx3 matches

@malcolmoceanโ€ขUpdated 1 month ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState, useEffect } from 'https://esm.sh/react@18.2.0';
3
4const Auth: React.FC = () => {
5 const [authUrl, setAuthUrl] = useState<string>('');
6 const [isLoading, setIsLoading] = useState<boolean>(true);

FlexCaltypes.ts1 match

@malcolmoceanโ€ขUpdated 1 month ago
120 id: string;
121 name: string;
122 component: React.ComponentType<any>;
123 icon?: string;
124}

reactHonoStarter4 file matches

@cnvxโ€ขUpdated 2 hours ago

reactHonoStarter4 file matches

@gamecodeโ€ขUpdated 4 hours ago
franky47
Freelance software engineer, open-sourcerer, speaker. Building `nuqs`, a type-safe search params state manager for React.
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.