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%22Optional%20title%22?q=react&page=128&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 11150 results for "react"(721ms)

Townie.cursorrules6 matches

@jasonkneen•Updated 5 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:**

TownieChatRoute.tsx3 matches

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

TownieChatRouteSingleColumn.tsx3 matches

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

TownieBranchSelect.tsx3 matches

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

TownieApp.tsx4 matches

@jasonkneen•Updated 5 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0?dev */
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 { ChatRoute } from "./ChatRoute.tsx";

pollinaterpblindex.tsx3 matches

@armadillomike•Updated 5 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
3import React, { useState } from "https://esm.sh/react@18.2.0";
4
5function ProductPage({ onBuyNow }) {

untitled-3428index.ts2 matches

@aacreative•Updated 5 days ago
330 <p class="mb-4">A brief description of the project and your role in it. Highlight key features and technologies used.</p>
331 <div class="flex flex-wrap gap-2 mb-4">
332 <span class="skill-tag text-xs px-3 py-1 rounded-full">React</span>
333 <span class="skill-tag text-xs px-3 py-1 rounded-full">Node.js</span>
334 <span class="skill-tag text-xs px-3 py-1 rounded-full">MongoDB</span>
385 <div class="progress-fill h-2.5 rounded-full" style="width: 80%"></div>
386 </div>
387 <span class="ml-2 min-w-[60px] text-right">React</span>
388 </li>
389 <li class="flex items-center">

yyyFooter.tsx3 matches

@seoxo•Updated 5 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React from "https://esm.sh/react@18.2.0";
3
4interface FooterProps {
10}
11
12const Footer: React.FC<FooterProps> = ({ projectInfo }) => {
13 return (
14 <footer className="bg-gray-800 text-white py-8">

yyyCartSidebar.tsx3 matches

@seoxo•Updated 5 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React from "https://esm.sh/react@18.2.0";
3import { Cart } from "../../shared/types";
4
11}
12
13const CartSidebar: React.FC<CartSidebarProps> = ({
14 cart,
15 isOpen,

yyyProductDetail.tsx3 matches

@seoxo•Updated 5 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState } from "https://esm.sh/react@18.2.0";
3import { Product } from "../../shared/types";
4
10}
11
12const ProductDetail: React.FC<ProductDetailProps> = ({
13 product,
14 onClose,

a_new_website4 file matches

@wolf•Updated 3 hours ago
Starter template with client-side React & Hono server

reactHonoStarter4 file matches

@ashryanio•Updated 4 hours ago
Starter template with client-side React & Hono server
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