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=12&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 16955 results for "react"(3409ms)

FarcasterSpacesApp.tsx3 matches

@moeUpdated 1 day ago
1/** @jsxImportSource https://esm.sh/react@19 */
2import fcsdk from 'https://esm.sh/@farcaster/frame-sdk'
3import { NavLink, Route, Routes } from 'https://esm.sh/react-router@7'
4import { useEffect, useState } from 'https://esm.sh/react@19'
5
6import { Analytics } from "./components/Analytics.tsx"

FarcasterSpacesAnalytics.tsx3 matches

@moeUpdated 1 day ago
1/** @jsxImportSource https://esm.sh/react@19 */
2import fcsdk from 'https://esm.sh/@farcaster/frame-sdk'
3import { useLocation } from 'https://esm.sh/react-router@7'
4import { useEffect, useState } from 'https://esm.sh/react@19'
5
6import { sendAnalyticsEvent } from '../util/supabase.ts'

ChatHTMLRenderer.tsx2 matches

@c15rUpdated 1 day ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useCallback, useEffect, useRef, useState } from "https://esm.sh/react@18.2.0";
3import { MCPClient } from "../utils/MCPClient.ts";
4

MusicPracticemain.tsx6 matches

@buzdyganUpdated 1 day ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { renderToString } from "npm:react-dom@18.2.0/server";
3
4/*
5📁 main.tsx
6*/
7import React from "npm:react";
8import TodoApp from "./TodoApp.tsx";
9
24 dangerouslySetInnerHTML={{
25 __html: `
26 import React from "npm:react";
27 // Use esm.sh client build for hydrateRoot
28 import { hydrateRoot } from "https://esm.sh/react-dom@18.2.0/client";
29 import TodoApp from "./TodoApp.tsx";
30 hydrateRoot(document.getElementById("root"), React.createElement(TodoApp));
31 `,
32 }}

MusicPracticeTodoApp.tsx4 matches

@buzdyganUpdated 1 day ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { renderToString } from "npm:react-dom@18.2.0/server";
3
4// TodoApp.tsx
5"use client"; // opt into client‑side interactivity
6import { useEffect, useState } from "npm:react";
7
8interface Todo {
25 }, []);
26
27 const add = async (e: React.FormEvent) => {
28 e.preventDefault();
29 await fetch("/api/todos", {

Snotel-Analyzerindex.html4 matches

@bjtitusUpdated 1 day ago
24
25 <script type="module">
26 import React, { useState, useEffect } from 'https://esm.sh/react@18.2.0?deps=react@18.2.0';
27 import ReactDOM from 'https://esm.sh/react-dom@18.2.0/client?deps=react@18.2.0,react-dom@18.2.0';
28
29 function App() {
212 }
213
214 const root = ReactDOM.createRoot(document.getElementById('root'));
215 root.render(React.createElement(App));
216 </script>
217</body>

Snotel-AnalyzerREADME.md1 match

@bjtitusUpdated 1 day ago
13- `backend/index.ts` - Main Hono server with API endpoints
14- `frontend/index.html` - Main HTML template
15- `frontend/index.tsx` - React frontend application
16- `shared/types.ts` - Shared TypeScript types
17

townie-126ValTownLogo.tsx1 match

@dinavinterUpdated 1 day ago
1/** @jsxImportSource https://esm.sh/react@18.2.0?dev */
2
3export function ValTownLogo () {

townie-126useUser.tsx1 match

@dinavinterUpdated 1 day ago
1import { useState, useEffect } from "react";
2
3const USER_ENDPOINT = "/api/user";

townie-126useUsageStats.ts1 match

@dinavinterUpdated 1 day ago
1import { useEffect } from "react";
2
3export function useUsageStats(messages: any[], usages: any[]) {

reactHonoStarter4 file matches

@lanlyUpdated 9 hours ago

tanstackReactHonoExample10 file matches

@laurynasUpdated 20 hours ago
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