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=144&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 16339 results for "react"(2841ms)

linkInBioTemplatemain.tsx2 matches

@Roszie2119โ€ขUpdated 6 days ago
1/** @jsxImportSource https://esm.sh/react */
2import { renderToString } from "npm:react-dom/server";
3
4export default async function(req: Request) {

untitled-4618index.tsx4 matches

@Mo5โ€ขUpdated 6 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React from 'https://esm.sh/react@18.2.0?deps=react@18.2.0';
3import { createRoot } from 'https://esm.sh/react-dom@18.2.0/client?deps=react@18.2.0';
4import App from './components/App.tsx';
5
8
9if (rootElement) {
10 // Create React root and render the app
11 const root = createRoot(rootElement);
12 root.render(<App />);

untitled-4618App.tsx2 matches

@Mo5โ€ขUpdated 6 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState } from 'https://esm.sh/react@18.2.0';
3import YogaSection from './YogaSection.tsx';
4import ChatRoom from './ChatRoom.tsx';

untitled-4618ChatRoom.tsx4 matches

@Mo5โ€ขUpdated 6 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState, useEffect, useRef } from 'https://esm.sh/react@18.2.0';
3import type { ChatMessage } from '../../shared/types.ts';
4
88 };
89
90 const handleLogin = (e: React.FormEvent) => {
91 e.preventDefault();
92 const trimmedUsername = username.trim();
96 };
97
98 const handleSendMessage = async (e: React.FormEvent) => {
99 e.preventDefault();
100 const trimmedMessage = newMessage.trim();

untitled-4618YogaSection.tsx2 matches

@Mo5โ€ขUpdated 6 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState } from 'https://esm.sh/react@18.2.0';
3import type { YogaPose } from '../../shared/types.ts';
4

openai_enrichment.cursorrules6 matches

@stevekrouseโ€ขUpdated 6 days ago
189- **Imports:** Use `https://esm.sh` for npm and Deno dependencies to ensure compatibility on server and browser
190- **Storage Strategy:** Only use backend storage if explicitly required; prefer simple static client-side sites
191- **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 */`
192- Ensure all React dependencies and sub-dependencies are pinned to the same version
193- **Styling:** Default to using TailwindCSS via `<script src="https://cdn.twind.style" crossorigin></script>` unless otherwise specified
194
275 - Always run table creation before querying
276
2773. **React Configuration:**
278 - All React dependencies must be pinned to 18.2.0
279 - Always include `@jsxImportSource https://esm.sh/react@18.2.0` at the top of React files
280 - Rendering issues often come from mismatched React versions
281
2824. **File Handling:**

openai_enrichmentapp.ts3 matches

@stevekrouseโ€ขUpdated 6 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React from "https://esm.sh/react@18.2.0";
3import ReactDOM from "https://esm.sh/react-dom@18.2.0";
4
5// Types

markdownBlogStarterLayout.tsx3 matches

@Kishaskyโ€ขUpdated 6 days 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

@Kishaskyโ€ขUpdated 6 days 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(

untitled-4618README.md2 matches

@Mo5โ€ขUpdated 6 days ago
29โ”œโ”€โ”€ frontend/
30โ”‚ โ”œโ”€โ”€ index.html # Main HTML template
31โ”‚ โ”œโ”€โ”€ index.tsx # React app entry point
32โ”‚ โ”œโ”€โ”€ components/
33โ”‚ โ”‚ โ”œโ”€โ”€ App.tsx # Main app component
49
50- **Backend**: Hono (TypeScript API framework)
51- **Frontend**: React 18.2.0 with TypeScript
52- **Database**: SQLite for chat message persistence
53- **Styling**: TailwindCSS

reactHonoStarter4 file matches

@halfstackโ€ขUpdated 1 day ago

MiniAppStarter10 file matches

@moeโ€ขUpdated 1 day ago
Hono + React + Tailwind + Farcaster Mini App Starter Project
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