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=52&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 9713 results for "react"(595ms)

glastocamtsconfig.json4 matches

@bensomething•Updated 6 days ago
17 // "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
18 // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
19 // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
20 // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */
21 // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */
22 // "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */
23 // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
24 // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */

valentinemain.tsx3 matches

@mazizXmaa•Updated 6 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
5const NO_PHRASES = [

untitled-2301main.tsx7 matches

@salon•Updated 6 days ago
1/** @jsxImportSource /react */
2import { renderToString } from "https://esm.sh/react-dom/server";
3
4import React, { useCallback, useEffect, useRef, useState } from "https://esm.sh/react";
5
6/* ---------- Types ---------- */
24 scoreWeights?: Partial<Scores>;
25 onFocusChange?: (node: NavNode<T>) => void;
26 renderNode: (node: NavNode<T>, focused: boolean) => React.ReactNode;
27 className?: string;
28 gridCols?: number;
150 const touch = useRef<{ x: number; y: number } | null>(null);
151
152 const onTouchStart = useCallback((e: React.TouchEvent) => {
153 const t = e.touches[0];
154 touch.current = { x: t.clientX, y: t.clientY };
155 }, []);
156
157 const onTouchEnd = useCallback((e: React.TouchEvent) => {
158 if (!touch.current) return;
159 const t = e.changedTouches[0];
226}
227
228// Example Usage (React)
229interface Race {
230 name: string;

Townieicons.tsx1 match

@loading•Updated 6 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0?dev */
2
3export function TownieIcon({

TownieuseUsageStats.ts1 match

@loading•Updated 6 days ago
1import { useEffect } from "https://esm.sh/react@18.2.0?dev";
2
3export function useUsageStats (messages: any[], usages: any[]) {

TownieuseScrollToBottom.tsx1 match

@loading•Updated 6 days ago
1import { useEffect, useRef } from 'https://esm.sh/react@18.2.0?dev';
2
3

TownieuseProject.tsx1 match

@loading•Updated 6 days ago
1import { useState, useEffect } from "https://esm.sh/react@18.2.0?dev";
2import { useAuth } from "./useAuth.tsx";
3

TownieuseProjects.tsx1 match

@loading•Updated 6 days ago
1import { useState, useEffect } from "https://esm.sh/react@18.2.0?dev";
2import { useAuth } from "./useAuth.tsx";
3

TownieuseLoadingFavicon.ts1 match

@loading•Updated 6 days ago
1import { useEffect } from "https://esm.sh/react@18.2.0?dev";
2
3function setLoadingFavicon() {

TownieuseCreateProject.tsx1 match

@loading•Updated 6 days ago
1
2import { useState, useEffect } from "https://esm.sh/react@18.2.0?dev";
3import { useAuth } from "./useAuth.tsx";
4

StarterPackFeeds10 file matches

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

reactHonoStarter4 file matches

@deboneil07•Updated 5 hours ago
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