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/$2?q=react&page=1166&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 16377 results for "react"(4961ms)

ingeniousYellowRavenmain.tsx5 matches

@LearnUpdated 2 months 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
5// --- Constants ---
558 createRoot(rootElement).render(<CardGraderApp />);
559 } else {
560 console.error("Root element not found for React app");
561 }
562}
766 }
767
768 // --- Serve HTML for GET requests (loads the React app) ---
769 if (request.method === "GET" && new URL(request.url).pathname === "/") {
770 // Use htmlContent defined below, ensuring it includes the current URL for the script src

campycardsmain.tsx5 matches

@findUpdated 2 months 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
5// --- Constants ---
558 createRoot(rootElement).render(<CardGraderApp />);
559 } else {
560 console.error("Root element not found for React app");
561 }
562}
781 }
782
783 // --- Serve HTML for GET requests (loads the React app) ---
784 if (request.method === "GET" && new URL(request.url).pathname === "/") {
785 // Use htmlContent defined below, ensuring it includes the current URL for the script src
val-town-badge

val-town-badgereverse-mark2 matches

@jxnblkUpdated 2 months ago
1/** @jsxImportSource npm:react */
2import { renderToStaticMarkup } from "npm:react-dom/server";
3
4import Mark from "./val-town-logomark";

domainSantamain.tsx3 matches

@karkowgUpdated 2 months ago
1/** @jsxImportSource https://esm.sh/react */
2import React, { useEffect, useState } from "https://esm.sh/react";
3import { createRoot } from "https://esm.sh/react-dom/client";
4import { letterVariations } from "https://esm.town/v/karkowg/domainSantaLetterVariations";
5
val-town-badge

val-town-badgebadge2 matches

@jxnblkUpdated 2 months ago
1/** @jsxImportSource npm:react */
2import { renderToStaticMarkup } from "npm:react-dom/server";
3
4import CodeIcon from "./code-icon";
val-town-badge

val-town-badgecode-icon3 matches

@jxnblkUpdated 2 months ago
1/** @jsxImportSource npm:react */
2import React from "npm:react";
3
4export default function CodeIcon(props: React.SVGProps<SVGSVGElement>) {
5 return (
6 <svg
val-town-badge

val-town-badgeval-town-logomark3 matches

@jxnblkUpdated 2 months ago
1/** @jsxImportSource npm:react */
2import React from "npm:react";
3
4export default function ValTownLogomark(props: React.SVGProps<SVGSVGElement>) {
5 return (
6 <svg
val-town-badge

val-town-badgeval-town-logo3 matches

@jxnblkUpdated 2 months ago
1/** @jsxImportSource npm:react */
2import React from "npm:react";
3
4export default function ValTownLogo(props: React.SVGProps<SVGSVGElement>) {
5 return (
6 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 442 79" {...props}>

Cardsmain.tsx9 matches

@findUpdated 2 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import * as Chakra from "https://esm.sh/@chakra-ui/react@2.8.0";
3import { ChakraProvider, extendTheme, useToast } from "https://esm.sh/@chakra-ui/react@2.8.0";
4import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
5import React, { useCallback, useEffect, useRef, useState } from "https://esm.sh/react@18.2.0";
6
7// --- Constants ---
347 }
348 }
349 // eslint-disable-next-line react-hooks/exhaustive-deps
350 }, [gradingResult, isRevealingGrade, pendingReportData, toast]); // Dependencies for saving logic
351
1327
1328// --- Icons (Simple Placeholder Icons) ---
1329// In a real app, you'd likely use an icon library like react-icons
1330const Icon = (props) => <Chakra.Box as="span" {...props} />; // Basic icon wrapper
1331const UploadIcon = (props) => <Icon {...props}>⬆️</Icon>; // Placeholder
1342 const root = createRoot(container);
1343 root.render(
1344 <React.StrictMode>
1345 <ChakraProvider theme={theme}>
1346 <ProfessionalCardGrader />
1347 </ChakraProvider>
1348 </React.StrictMode>,
1349 );
1350} else {

simpleMermaidRenderermain.tsx3 matches

@wolfUpdated 2 months ago
1/** @jsxImportSource https://esm.sh/react */
2import mermaid from "https://esm.sh/mermaid@10.6.1";
3import React, { useEffect, useRef, useState } from "https://esm.sh/react";
4import { createRoot } from "https://esm.sh/react-dom/client";
5
6// Initial diagram example

reactHonoStarter4 file matches

@halfstackUpdated 1 day ago

MiniAppStarter10 file matches

@moeUpdated 1 day ago
Hono + React + Tailwind + Farcaster Mini App Starter Project
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