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/?q=react&page=7&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 21590 results for "react"(984ms)

Townie-Al2Header.tsx4 matches

@prubeandoAl•Updated 2 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { useEffect, useContext, useRef, useState } from "react";
3import { Link, useNavigate } from "react-router";
4import { useLocalStorage } from "react-use";
5import { Circle, Volume2Icon, VolumeOffIcon } from "./icons.tsx";
6import { AppContext } from "./App.tsx";

Townie-Al2Footer.tsx1 match

@prubeandoAl•Updated 2 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import CreditBalance from "./CreditBalance.tsx";
3

Townie-Al2favicon.http.tsx2 matches

@prubeandoAl•Updated 2 days ago
1/** @jsxImportSource npm:react@18.2.0 */
2import { renderToString } from "npm:react-dom@18.2.0/server";
3import { TownieIcon } from "./components/icons.tsx";
4

Townie-Al2DebugStyles.tsx2 matches

@prubeandoAl•Updated 2 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { useRef, useEffect, useState } from "react";
3import { TownieIcon } from "./icons.tsx";
4import { Messages } from "./Messages.tsx";

Townie-Al2.cursorrules6 matches

@prubeandoAl•Updated 2 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:**

Townie-Al2CreditBalance.tsx3 matches

@prubeandoAl•Updated 2 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState, useEffect } from "react";
3import { Link } from "react-router";
4
5export default function CreditBalance() {

Townie-Al2ChatRouteSingleColumn.tsx3 matches

@prubeandoAl•Updated 2 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { useState, useEffect, useContext, createContext, useRef } from "react";
3import { useParams, Link } from "react-router";
4
5import { AppContext } from "./App.tsx";

Townie-Al2BranchSelect.tsx3 matches

@prubeandoAl•Updated 2 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { useMemo } from "react";
3import { useNavigate, useParams } from "react-router";
4import { useBranches } from "../hooks/useBranches.tsx";
5import { useCreateBranch } from "../hooks/useCreateBranch.tsx";

Townie-Al2App.tsx4 matches

@prubeandoAl•Updated 2 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { createContext, useState } from "react";
3import { BrowserRouter, Link, Navigate, Outlet, Route, Routes, useLocation } from "react-router";
4import { useLocalStorage } from "react-use";
5import { useUser } from "../hooks/useUser.tsx";
6import { ChatRouteSingleColumn } from "./ChatRouteSingleColumn.tsx";

SonarHome.tsx3 matches

@moe•Updated 2 days ago
1/** @jsxImportSource https://esm.sh/react@19 */
2import {
3 BookUser,
11 User,
12 Users,
13} from 'https://esm.sh/lucide-react@0.510.0'
14import { useNavigate } from 'https://esm.sh/react-router@7'
15
16import { Section } from '../components/ui.tsx'

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

@lightweight•Updated 1 hour 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.