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=1&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 9061 results for "react"(704ms)

TownieuseAuth.tsx2 matches

@valdottown•Updated 2 hours ago
1import { useLocalStorage } from "https://esm.sh/react-use?dev&deps=react@18.2.0&react-dom@18.2.0";
2import { useState } from "https://esm.sh/react@18.2.0?dev";
3
4const TOKEN_KEY = "bearer";

TownieLoginRoute.tsx3 matches

@valdottown•Updated 2 hours ago
1/** @jsxImportSource https://esm.sh/react@18.2.0?dev */
2import { useNavigate } from "https://esm.sh/react-router@7?dev&deps=react@18.2.0&react-dom@18.2.0";
3import { useEffect, useState } from "https://esm.sh/react@18.2.0?dev";
4import { useAuth } from "../hooks/useAuth.tsx";
5

markdownBlogStarterLayout.tsx3 matches

@Abdikeni•Updated 3 hours 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

@Abdikeni•Updated 3 hours 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@85-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(

TownieHome.tsx4 matches

@valdottown•Updated 4 hours ago
1/** @jsxImportSource https://esm.sh/react@18.2.0?dev */
2import { Link } from "https://esm.sh/react-router@7?dev&deps=react@18.2.0&react-dom@18.2.0";
3import React from "https://esm.sh/react@18.2.0?dev";
4import { EyeIcon, FileCode2Icon, SparklesIcon, SquarePenIcon } from "./icons.tsx";
5
92 </p>
93 <ul>
94 <li>React frontend with TypeScript</li>
95 <li>Hono API server backend</li>
96 <li>Web Audio API for sound notifications</li>

TownieuseUsageStats.ts1 match

@valdottown•Updated 4 hours ago
1import { useEffect } from "https://esm.sh/react@18.2.0?dev";
2
3export function useUsageStats (messages: any[], usages: any[]) {

TownieuseScrollToBottom.tsx1 match

@valdottown•Updated 4 hours ago
1import { useEffect, useRef } from 'https://esm.sh/react@18.2.0?dev';
2
3

TownieuseProject.tsx1 match

@valdottown•Updated 4 hours ago
1import { useState, useEffect } from "https://esm.sh/react@18.2.0?dev";
2import { useAuth } from "./useAuth.tsx";
3

TownieuseProjects.tsx1 match

@valdottown•Updated 4 hours ago
1import { useState, useEffect } from "https://esm.sh/react@18.2.0?dev";
2import { useAuth } from "./useAuth.tsx";
3

TownieuseLoadingFavicon.ts1 match

@valdottown•Updated 4 hours ago
1import { useEffect } from "https://esm.sh/react@18.2.0?dev";
2
3function setLoadingFavicon() {

vt-discord4 file matches

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

diceRollerUI1 file match

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