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=26&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 17511 results for "react"(3149ms)

Townieindex.ts6 matches

@valdottownโ€ขUpdated 3 days ago
193 {
194 "imports": {
195 "react": "https://esm.sh/react@18.2.0?dev",
196 "react-dom": "https://esm.sh/react-dom@18.2.0/client?dev",
197 "react-router": "https://esm.sh/react-router@7.4.0?dev&deps=react@18.2.0,react-dom@18.2.0",
198 "react-use": "https://esm.sh/react-use?dev&deps=react@18.2.0,react-dom@18.2.0",
199 "@ai-sdk/react": "https://esm.sh/@ai-sdk/react?dev&deps=react@18.2.0,react-dom@18.2.0,zod@3.24",
200 "react-markdown": "https://esm.sh/react-markdown?dev&deps=react@18.2.0,react-dom@18.2.0"
201 }
202 }
216- **Imports:** Use `https://esm.sh` for npm and Deno dependencies to ensure compatibility on server and browser
217- **Storage Strategy:** Only use backend storage if explicitly required; prefer simple static client-side sites
218- **React Configuration:** When using React libraries, pin versions with `?deps=react@18.2.0,react-dom@18.2.0` and start the file with `/** @jsxImportSource https://esm.sh/react@18.2.0 */`
219- Ensure all React dependencies and sub-dependencies are pinned to the same version
220- **Styling:** Default to using TailwindCSS via `<script src="https://cdn.twind.style" crossorigin></script>` unless otherwise specified
221
351 - Always run table creation before querying
352
3533. **React Configuration:**
354 - All React dependencies must be pinned to 18.2.0
355 - Always include `@jsxImportSource https://esm.sh/react@18.2.0` at the top of React files
356 - Rendering issues often come from mismatched React versions
357
3584. **File Handling:**

bluesky-jaws-1975jaws-1975.txt2 matches

@cheersderekโ€ขUpdated 3 days ago
145She tires, fishing boat comes along...
146It's happened before.
147I don't think you appreciate the gut reaction people have to these things.
148Larry, I appreciate it.
149I'm just reacting to what I was told.
150Martin, it's all psychological.
151You yell, "Barracuda!" and everybody says, "Huh? What?"

vtEditorFiles-fixvaltown.mdc6 matches

@nbbaierโ€ขUpdated 3 days ago
170- **Imports:** Use `https://esm.sh` for npm and Deno dependencies to ensure compatibility on server and browser
171- **Storage Strategy:** Only use backend storage if explicitly required; prefer simple static client-side sites
172- **React Configuration:** When using React libraries, pin versions with `?deps=react@18.2.0,react-dom@18.2.0` and start the file with `/** @jsxImportSource https://esm.sh/react@18.2.0 */`
173- Ensure all React dependencies and sub-dependencies are pinned to the same version
174- **Styling:** Default to using TailwindCSS via `<script src="https://cdn.twind.style" crossorigin></script>` unless otherwise specified
175
257 - Always run table creation before querying
258
2593. **React Configuration:**
260 - All React dependencies must be pinned to 18.2.0
261 - Always include `@jsxImportSource https://esm.sh/react@18.2.0` at the top of React files
262 - Rendering issues often come from mismatched React versions
263
2644. **File Handling:**

GIthubProfileindex.tsx12 matches

@anand_gโ€ขUpdated 3 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState, useEffect } from "https://esm.sh/react@18.2.0";
3import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
4
5// Types
95
96// Components
97const LoadingSpinner: React.FC = () => (
98 <div className="flex justify-center items-center py-12">
99 <div className="loading-spinner"></div>
101);
102
103const ErrorMessage: React.FC<{ message: string }> = ({ message }) => (
104 <div className="bg-red-50 border border-red-200 rounded-lg p-4 text-red-700">
105 <div className="flex items-center">
110);
111
112const UserProfileCard: React.FC<{ user: GitHubUser }> = ({ user }) => (
113 <div className="profile-card text-white p-8 mb-8 fade-in">
114 <div className="flex flex-col md:flex-row items-center md:items-start gap-6">
191);
192
193const StatsGrid: React.FC<{ user: GitHubUser }> = ({ user }) => (
194 <div className="grid grid-cols-2 md:grid-cols-4 gap-4 mb-8">
195 {[
210);
211
212const RecentRepos: React.FC<{ repos: GitHubRepo[] }> = ({ repos }) => (
213 <div className="bg-white rounded-lg shadow-sm p-6 mb-8">
214 <h2 className="text-xl font-bold text-gray-800 mb-4 flex items-center gap-2">
270);
271
272const RecentActivity: React.FC<{ events: GitHubEvent[] }> = ({ events }) => (
273 <div className="bg-white rounded-lg shadow-sm p-6 mb-8">
274 <h2 className="text-xl font-bold text-gray-800 mb-4 flex items-center gap-2">
299);
300
301const RawDataSection: React.FC<{ rawResponses: any }> = ({ rawResponses }) => {
302 const [expandedSection, setExpandedSection] = useState<string | null>(null);
303
348
349// Main App Component
350const App: React.FC = () => {
351 const [username, setUsername] = useState<string>('');
352 const [profileData, setProfileData] = useState<GitHubProfileData | null>(null);
377 };
378
379 const handleSubmit = (e: React.FormEvent) => {
380 e.preventDefault();
381 fetchProfile(username);

GIthubProfileREADME.md2 matches

@anand_gโ€ขUpdated 3 days ago
18โ”œโ”€โ”€ frontend/
19โ”‚ โ”œโ”€โ”€ index.html # Main HTML template
20โ”‚ โ”œโ”€โ”€ index.tsx # React frontend application
21โ”‚ โ””โ”€โ”€ style.css # Custom styles
22โ””โ”€โ”€ README.md
38
39- **Backend**: Hono (TypeScript API framework)
40- **Frontend**: React with TypeScript
41- **Styling**: TailwindCSS
42- **APIs**: GitHub REST API v4

GlancerREADME.md9 matches

@glanceโ€ขUpdated 3 days ago
100## Codebase Structure
101
102This project extends Val Town's recommended approach for using Hono and React together (https://www.val.town/x/std/reactHonoStarter) with additional enterprise features.
103
104```
111โ”‚ โ”‚ โ””โ”€โ”€ views/ # HTML page serving
112โ”‚ โ””โ”€โ”€ index.ts # Main Hono application entry point
113โ”œโ”€โ”€ frontend/ # Client-side React application
114โ”‚ โ”œโ”€โ”€ components/ # React components
115โ”‚ โ”œโ”€โ”€ index.html # Main HTML template
116โ”‚ โ””โ”€โ”€ index.tsx # Frontend JavaScript entry point
125### Frontend (`/frontend`)
126
127React-based user interface with Tailwind CSS styling. Includes the main demo interface, cobrowsing integration, and interactive components.
128
129### Shared (`/shared`)
138- **Blob Storage**: Val Town's built-in caching solution for performance optimization
139- **Cron Jobs**: Scheduled tasks to maintain cache freshness
140- **React/JSX**: Frontend interface templates with TypeScript
141- **Tailwind CSS**: Utility-first CSS framework for styling
142
143## Technical Implementation
144
145### React Frontend
146
147The frontend uses React 18.2.0 with JSX import source configuration:
148
149```typescript
150/** @jsxImportSource https://esm.sh/react@18.2.0 */
151```
152
153All React dependencies are pinned to ensure compatibility across the platform.
154
155### Hono Backend Routes

GlancerApp.tsx4 matches

@glanceโ€ขUpdated 3 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { useEffect, useState } from "https://esm.sh/react@18.2.0";
3import { DemoData, isApiError, isNotionPage } from "../index.tsx";
4import { TOC } from "./content/demoTableOfContents.tsx";
44 // current hash for nav styling
45 const currentHash = useCurrentHash();
46 // a little light logging so we can see that React is connecting the /frontend and the /backend
47 console.log("Current path:", location.pathname);
48 console.log("Demo data:", demoData);
258 };
259
260 // this last return puts the page elements from renderDemoData into a div, which React likes
261 return (
262 <div>

GlancergenerateHTML.tsx2 matches

@glanceโ€ขUpdated 3 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { useEffect } from "https://esm.sh/react@18.2.0";
3
4/*

GlancerdemoTableOfContents.tsx1 match

@glanceโ€ขUpdated 3 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2
3export function TOC({ data }): any {

reactHonoStarterkk4 file matches

@tengisโ€ขUpdated 4 hours ago

reactHonoStarte4 file matches

@tengisโ€ขUpdated 4 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