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/$%7Burl%7D?q=react&page=8&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 9067 results for "react"(644ms)

TownieHeader.tsx4 matches

@std•Updated 11 hours ago
1/** @jsxImportSource https://esm.sh/react@18.2.0?dev */
2import { useEffect, useContext } from "https://esm.sh/react@18.2.0?dev";
3import { Link, useNavigate } from "https://esm.sh/react-router@7?dev&deps=react@18.2.0&react-dom@18.2.0";
4import { useLocalStorage } from "https://esm.sh/react-use?dev&deps=react@18.2.0&react-dom@18.2.0";
5import { useAuth } from "../hooks/useAuth.tsx";
6import { Circle, Volume2Icon, VolumeOffIcon } from "./icons.tsx";

Towniefavicon.http.tsx2 matches

@std•Updated 11 hours ago
1/** @jsxImportSource https://esm.sh/react@18.2.0?dev */
2import { renderToString } from "https://esm.sh/react-dom@18.2.0/server";
3import { TownieIcon } from "./components/icons.tsx";
4

TownieDebugStyles.tsx2 matches

@std•Updated 11 hours ago
1/** @jsxImportSource https://esm.sh/react@18.2.0?dev */
2import { useRef, useEffect, useState } from "https://esm.sh/react@18.2.0?dev";
3import { TownieIcon } from "./icons.tsx";
4import { Messages } from "./Messages.tsx";

TownieChatRoute.tsx3 matches

@std•Updated 11 hours ago
1/** @jsxImportSource https://esm.sh/react@18.2.0?dev */
2import { useState, useEffect, useContext } from "https://esm.sh/react@18.2.0?dev";
3import { useParams } from "https://esm.sh/react-router@7?dev&deps=react@18.2.0&react-dom@18.2.0";
4
5import { AppContext } from "./App.tsx";

TownieBranchSelect.tsx3 matches

@std•Updated 11 hours ago
1/** @jsxImportSource https://esm.sh/react@18.2.0?dev */
2import { useMemo } from "https://esm.sh/react@18.2.0?dev";
3import { useNavigate, useParams } from "https://esm.sh/react-router@7?dev&deps=react@18.2.0&react-dom@18.2.0";
4import { useBranches } from "../hooks/useBranches.tsx";
5import { useCreateBranch } from "../hooks/useCreateBranch.tsx";

TownieApp.tsx4 matches

@std•Updated 11 hours ago
1/** @jsxImportSource https://esm.sh/react@18.2.0?dev */
2import React, { useState, createContext } from "https://esm.sh/react@18.2.0?dev";
3import {
4 BrowserRouter,
9 Navigate,
10 useLocation,
11} from "https://esm.sh/react-router@7?dev&deps=react@18.2.0&react-dom@18.2.0";
12import { useLocalStorage } from "https://esm.sh/react-use?dev&deps=react@18.2.0&react-dom@18.2.0";
13import { LayoutRoute } from "./LayoutRoute.tsx";
14import { Home } from "./Home.tsx";

image-inpaintingmain.tsx3 matches

@themichaellai•Updated 11 hours ago
1/** @jsxImportSource https://esm.sh/preact */
2import { render } from "npm:preact-render-to-string";
3
4// import { h } from "npm:preact";
5import { HTML } from "./html.tsx";
6

image-inpaintingApp.tsx3 matches

@themichaellai•Updated 11 hours ago
1/** @jsxImportSource preact */
2// import { h } from "preact";
3import { useEffect, useRef, useState } from "npm:preact/hooks";
4
5export default function App() {

image-inpaintinghtml.tsx8 matches

@themichaellai•Updated 11 hours ago
1/** @jsxImportSource https://esm.sh/preact */
2import { render } from "npm:preact-render-to-string";
3
4// import { h } from "preact";
5
6export function HTML() {
20 </style>
21
22 {/* Import-map so the browser can import Preact & friends */}
23 <script type="importmap">
24 {`{
25 "imports": {
26 "preact": "https://esm.sh/preact@10.19.2",
27 "preact/hooks": "https://esm.sh/preact@10.19.2/hooks",
28 "preact-render-to-string": "https://esm.sh/preact-render-to-string@6.4.2"
29 }
30 }`}
34 <body>
35 <div id="app"></div>
36 {/* Client bundle that hydrates the Preact app */}
37 <script type="module" src="./client.ts"></script>
38 </body>

image-inpaintingclient.ts3 matches

@themichaellai•Updated 12 hours ago
1/** @jsxImportSource https://esm.sh/preact */
2import { render } from "npm:preact-render-to-string";
3
4// import { h, render } from "preact";
5import App from "./App.tsx";
6

vt-discord4 file matches

@boucher•Updated 3 days ago
Starter template with client-side React & Hono server

diceRollerUI1 file match

@dcm31•Updated 4 days 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