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=346&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 4744 results for "react"(1247ms)

OpenTownieChatInput.tsx6 matches

@neverstew•Updated 4 weeks ago
1/** @jsxImportSource https://esm.sh/react@18.2.0?dev */
2import React, { useEffect, useRef, useState } from "https://esm.sh/react@18.2.0?dev";
3import { ImageUpload, processFiles } from "./ImageUpload.tsx";
4
5interface ChatInputProps {
6 input: string;
7 handleInputChange: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;
8 handleSubmit: (e: React.FormEvent<HTMLFormElement>) => void;
9 running: boolean;
10 images: (string | null)[];
11 setImages: React.Dispatch<React.SetStateAction<(string | null)[]>>;
12 isDragging: boolean;
13}
41 }, []);
42
43 const handleFormSubmit = (e: React.FormEvent<HTMLFormElement>) => {
44 e.preventDefault();
45 const validImages = images.filter((img): img is string => typeof img === "string");

OpenTownieChatHeader.tsx2 matches

@neverstew•Updated 4 weeks ago
1/** @jsxImportSource https://esm.sh/react@18.2.0?dev */
2import React from "https://esm.sh/react@18.2.0?dev";
3import { BranchControl } from "./BranchControl.tsx";
4

OpenTownieBranchControl.tsx3 matches

@neverstew•Updated 4 weeks ago
1/** @jsxImportSource https://esm.sh/react@18.2.0?dev */
2import React, { useEffect, useState } from "https://esm.sh/react@18.2.0?dev";
3import { CreateBranch } from "./CreateBranch.tsx";
4
84
85 // Handle branch selection change
86 const handleBranchChange = (e: React.ChangeEvent<HTMLSelectElement>) => {
87 const newBranchId = e.target.value;
88 setBranchId(newBranchId);

OpenTownieApp.tsx3 matches

@neverstew•Updated 4 weeks ago
1/** @jsxImportSource https://esm.sh/react@18.2.0?dev */
2import { useLocalStorage } from "https://esm.sh/react-use?dev&deps=react@18.2.0&react-dom@18.2.0";
3import React, { useState } from "https://esm.sh/react@18.2.0?dev";
4import { Chat } from "./Chat.tsx";
5import { Login } from "./Login.tsx";

OpenTownieApiKeyWarning.tsx2 matches

@neverstew•Updated 4 weeks ago
1/** @jsxImportSource https://esm.sh/react@18.2.0?dev */
2import React from "https://esm.sh/react@18.2.0?dev";
3
4interface ApiKeyWarningProps {

cheerfulOliveDinosaurtest3 matches

@stevekrouse•Updated 4 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 from "https://esm.sh/react@18.2.0";
4
5function App() {
val-town-badge

val-town-badgereverse-mark2 matches

@jxnblk•Updated 4 weeks ago
1/** @jsxImportSource npm:react */
2import { renderToStaticMarkup } from "npm:react-dom/server";
3
4import Mark from "./val-town-logomark";
val-town-badge

val-town-badgebadge2 matches

@jxnblk•Updated 4 weeks 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

@jxnblk•Updated 4 weeks 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

@jxnblk•Updated 4 weeks ago
1/** @jsxImportSource npm:react */
2import React from "npm:react";
3
4export default function ValTownLogomark(props: React.SVGProps<SVGSVGElement>) {
5 return (
6 <svg
react-router-starter

react-router-starter3 file matches

@jxnblk•Updated 56 mins ago
Minimal React Router starter

reactHonoStarter4 file matches

@bradnoble•Updated 9 hours ago