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=81&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 8585 results for "react"(637ms)

vt-blogHead.tsx1 match

@charmaine•Updated 1 week ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { readFile } from "https://esm.town/v/std/utils/index.ts";
3import { BLOG_URL, SITE_DESCRIPTION } from "../utils/constants.ts";

vt-blogget-old-posts.ts1 match

@charmaine•Updated 1 week ago
152 "slug": "post-mortem-esm-sh",
153 "link": "/blog/post-mortem-esm-sh",
154 "description": "Some vals experienced lockfile and React errors due to breaking changes in esm.sh",
155 "pubDate": "Thu, 16 Jan 2025 00:00:00 GMT",
156 "author": "Steve Krouse",

vt-blogFooter.tsx1 match

@charmaine•Updated 1 week ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import SocialLinks from "./SocialLinks.tsx";
3import LogoMark from "./LogoMark.tsx";

vt-blogfavicon.ts2 matches

@charmaine•Updated 1 week ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { Hono } from "https://esm.sh/hono@3.12.0";
3import { renderToStaticMarkup } from "https://esm.sh/react-dom@18.2.0/server";
4import { Favicon } from "../components/LogoMark.tsx";
5

vt-blogByline.tsx1 match

@charmaine•Updated 1 week ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { formatDate, dayOfWeek } from "./util.tsx";
3

vt-blogblog.ts2 matches

@charmaine•Updated 1 week ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { Hono } from "https://esm.sh/hono@3.12.0";
3import { renderToString } from "https://esm.sh/react-dom@18.2.0/server";
4import { BlogPostComponent } from "../components/BlogPost.tsx";
5import { getBlogPostBySlug } from "../utils/get-new-posts.ts";

vt-blogBlogPost.tsx2 matches

@charmaine•Updated 1 week ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React from "https://esm.sh/react@18.2.0";
3import { BlogPost as BlogPostType } from "../utils/types.ts";
4import Byline from "./Byline.tsx";

vt-blog2025-04-08-migration.md1 match

@charmaine•Updated 1 week ago
14| | Before | Now |
15|---------------------|---------------------------|------------|
16| **Rendering** | Astro | React |
17| **Version control** | GitHub | Val Town |
18| **Text editing** | Local editor | Val Town |

sauce_iframesmain.tsx4 matches

@dcm31•Updated 1 week ago
1// Version: 2.1.1 - Fixed isMobile reference error
2/** @jsxImportSource https://esm.sh/react@18.2.0 */
3
4import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
5import React, { useEffect, useRef, useState } from "https://esm.sh/react@18.2.0";
6
7// App data remains the same
203 const rootElement = document.getElementById("root");
204 if (rootElement) {
205 console.log("Mounting React app (v2.1.1)");
206 createRoot(rootElement).render(<App />);
207 } else {

mediainfomain.tsx3 matches

@jamiedubs•Updated 1 week ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import mediaInfoFactory from "https://esm.sh/mediainfo.js@0.2.1";
3import { renderToString } from "https://esm.sh/react-dom@18.2.0/server";
4import React from "https://esm.sh/react@18.2.0";
5
6interface AppProps {

vt-discord4 file matches

@boucher•Updated 1 day ago
Starter template with client-side React & Hono server

diceRollerUI1 file match

@dcm31•Updated 1 day ago
A web-based dice roller using React on Val Town
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