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=165&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 9775 results for "react"(1846ms)

statussparklineSVG1 match

@aboelezz•Updated 2 weeks ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2export function SparklineSVG({ strokeWidth = 2, data = [], fill = "none", stroke = "black" }) {
3 const padding = 2;

linkInBioTemplatemain.tsx2 matches

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

AI_generated_Picturesmain.tsx4 matches

@Shega•Updated 2 weeks 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
5// Language translation utility (basic implementation)
11};
12
13// Client-side React component
14function App() {
15 const [prompt, setPrompt] = useState("");

first_appmain.tsx3 matches

@ysr_0•Updated 2 weeks ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
3import React, { useCallback, useEffect, useRef, useState } from "https://esm.sh/react@18.2.0";
4
5function App() {

Marketingmain.tsx3 matches

@Reinner•Updated 2 weeks 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 App() {

FixItWandWand.tsx2 matches

@wolf•Updated 2 weeks ago
1/** @jsxImportSource https://esm.sh/react@19.0.0 */
2
3import { useQuery } from "https://esm.sh/@tanstack/react-query@5.74.7?deps=react@19.0.0";
4import { client } from "../../hono.ts";
5import { Skeleton } from "../Loading.tsx";

FixItWandindex.tsx4 matches

@wolf•Updated 2 weeks ago
1/** @jsxImportSource https://esm.sh/react@19.0.0 */
2import { createRoot } from "https://esm.sh/react-dom@19.0.0/client";
3import { BrowserRouter } from "https://esm.sh/react-router-dom@7.4.1?deps=react@19.0.0,react-dom@19.0.0";
4import { App } from "./components/App.tsx";
5import { QueryClientProvider } from "https://esm.sh/@tanstack/react-query@5.74.7?deps=react@19.0.0";
6import { queryClient } from "./hono.ts";
7

FixItWanduseAuth.ts1 match

@wolf•Updated 2 weeks ago
1import { useCallback, useEffect, useState } from "https://esm.sh/react@19.0.0";
2import { User } from "../../backend/db/schemas_http.ts";
3import { client } from "../hono.ts";

FixItWandSignIn.tsx4 matches

@wolf•Updated 2 weeks ago
1/** @jsxImportSource https://esm.sh/react@19.0.0 */
2import { useState } from "https://esm.sh/react@19.0.0";
3import { useLocation } from "https://esm.sh/react-router-dom@7.4.1?deps=react@19.0.0,react-dom@19.0.0";
4import { useAuth } from "../hooks/useAuth.ts";
5
14 const from = location.state?.from?.pathname || "/";
15
16 const handleRequestMagicLink = async (e: React.FormEvent) => {
17 e.preventDefault();
18 setErrorMessage(null);

FixItWandProfile.tsx5 matches

@wolf•Updated 2 weeks ago
1/** @jsxImportSource https://esm.sh/react@19.0.0 */
2
3import { useEffect, useState } from "https://esm.sh/react@19.0.0";
4import { useAuth } from "../hooks/useAuth.ts";
5import { Wand } from "../components/Wands/Wand.tsx";
6
7const ProfileField = (
8 { label, value }: { label: string; value: React.ReactNode },
9) => (
10 <div className="flex border-b border-gray-200 pb-2">
24 label: string;
25 value: string;
26 onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
27 disabled: boolean;
28}) => (
74 }
75
76 const handleSubmit = async (e: React.FormEvent) => {
77 e.preventDefault();
78 setIsSubmitting(true);

StarterPackFeeds10 file matches

@moe•Updated 2 hours ago
Hono + React + Tailwind + Farcaster Mini App Starter Project

new_website

@wolf•Updated 8 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