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=379&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 4326 results for "react"(505ms)

OpenTownieBranchControl.tsx3 matches

@stevekrouse•Updated 1 month 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);

markdownBlogStarterLayout.tsx3 matches

@jdouglas8585•Updated 1 month ago
1/** @jsxImportSource npm:react@18.2.0 */
2import type { ReactNode } from "npm:react@18.2.0";
3
4export function Layout({ children }: { children: ReactNode }) {
5 return (
6 <html lang="en">

markdownBlogStarterindex.tsx4 matches

@jdouglas8585•Updated 1 month ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import Markdown from "https://esm.sh/react-markdown@9?deps=react@18.2.0";
3import { listFiles, readFile } from "https://esm.town/v/std/utils@79-main/index.ts";
4import { renderToString } from "npm:react-dom@18.2.0/server";
5import { Layout } from "./Layout.tsx";
6
44}
45
46function html(children: React.ReactNode) {
47 return new Response(
48 renderToString(

OpenTownieCreateBranch.tsx3 matches

@stevekrouse•Updated 1 month ago
1/** @jsxImportSource https://esm.sh/react@18.2.0?dev */
2import React, { useState } from "https://esm.sh/react@18.2.0?dev";
3
4interface CreateBranchProps {
25 };
26
27 const handleSubmit = async (e: React.FormEvent) => {
28 e.preventDefault();
29

utilsREADME.md1 match

@alexwein•Updated 1 month ago
16```
17
18Example usage: https://www.val.town/x/std/reactHonoStarter/code/backend/index.ts

utilsproject.test.ts2 matches

@alexwein•Updated 1 month ago
1/** @jsxImportSource https://esm.sh/preact */
2import { expect } from "jsr:@std/expect";
3import { makeBadge } from "npm:badge-maker";
4import { render } from "npm:preact-render-to-string";
5import prettyMilliseconds from "npm:pretty-ms";
6import { parseProject } from "./project.ts";

utilsindex.tsx2 matches

@alexwein•Updated 1 month ago
1/** @jsxImportSource https://esm.sh/preact */
2import { makeBadge } from "npm:badge-maker";
3import { render } from "npm:preact-render-to-string";
4import prettyMilliseconds from "npm:pretty-ms";
5

instagramScrapingApp.tsx2 matches

@wolf•Updated 1 month ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { useEffect, useRef, useState } from "https://esm.sh/react@18.2.0";
3
4export default function App() {

instagramScrapingindex.tsx2 matches

@wolf•Updated 1 month ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
3import App from "./components/App.tsx";
4

bingImageOfDayindex.tsx1 match

@wolf•Updated 1 month ago
1// @jsxImportSource https://esm.sh/react@18.2.0
2import { Hono } from "https://deno.land/x/hono/mod.ts";
3import { blob } from "https://esm.town/v/std/blob";

react-router-starter-remix-13 file matches

@jxnblk•Updated 1 day ago

reactHonoStarter4 file matches

@stfnsr•Updated 2 days ago