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=1205&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 15995 results for "react"(2019ms)

townieBearREADME.md4 matches

@charmaineโ€ขUpdated 2 months ago
1# React Hono Starter
2
3This app is a starter template for client-side React and server-side Hono.
4
5- **Remix** this starter template on the top right to get started.
7- The **entrypoint** is `/backend/index.ts`. That's the backend HTTP server, which also serves the all the frontend assets.
8
9- The **client-side entrypoint** is `/frontend/index.html`, which in turn imports `/frontend/index.tsx`, which in turn imports the React app from `/frontend/components/App.tsx`.
10
11[React Hono Example](https://www.val.town/x/stevekrouse/reactHonoExample) is a fuller featured example project, with a SQLite database table, queries, client-side CSS and a favicon, and some shared code that runs on both client and server.

countGithubLOC_506743countGithubLOCopengraph2 matches

@gโ€ขUpdated 2 months ago
1/** @jsxImportSource https://esm.sh/react */
2import React from 'https://esm.sh/react';
3import { ImageResponse } from 'npm:@vercel/og';
4

ideaScorehttp.tsx4 matches

@dcm31โ€ขUpdated 2 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
3import { renderToString } from "https://esm.sh/react-dom@18.2.0/server";
4import React from "https://esm.sh/react@18.2.0";
5import { lastlogin } from "https://esm.town/v/stevekrouse/lastlogin_safe";
6

comicalGreenAnacondamain.tsx3 matches

@pkfโ€ขUpdated 2 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState, useEffect, useRef } from "https://esm.sh/react@18.2.0";
3import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
4
5const Timer = ({ time, isActive }) => {

statusstatus2 matches

@Vyqdaโ€ขUpdated 2 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { parseProject } from "https://esm.town/v/std/parseImportMeta/project";
3import { sqlite } from "https://esm.town/v/std/sqlite?v=6";
4import { html } from "https://esm.town/v/stevekrouse/html";
5import { renderToString } from "npm:react-dom@18.2.0/server";
6import config from "./config.json" with { type: "json" };
7import { SparklineSVG } from "./sparklineSVG";

statussparklineSVG1 match

@Vyqdaโ€ขUpdated 2 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2export function SparklineSVG({ strokeWidth = 2, data = [], fill = "none", stroke = "black" }) {
3 const padding = 2;

cerebras_coderindex10 matches

@zentix1โ€ขUpdated 2 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { createRoot } from "https://esm.sh/react-dom@18.2.0/client?deps=react@18.2.0";
3import { Prism as SyntaxHighlighter } from "https://esm.sh/react-syntax-highlighter?deps=react@18.2.0,react-dom@18.2.0";
4import React, { useEffect, useState } from "https://esm.sh/react@18.2.0";
5import STARTER_PROMPTS from "./starter-prompts.js";
6
30}: {
31 prompt: string;
32 setPrompt: React.Dispatch<React.SetStateAction<string>>;
33 handleSubmit: (e: React.FormEvent) => void;
34 handleStarterPromptClick: (promptItem: PromptItem) => void;
35}) {
116
117function App() {
118 const previewRef = React.useRef<HTMLDivElement>(null);
119 const [prompt, setPrompt] = useState("");
120 const [projectId, setProjectId] = useState<number | null>(null);
174 }
175
176 async function handleSubmit(e: React.FormEvent | string) {
177 if (typeof e !== "string") {
178 e.preventDefault();
673 </div>
674 <div className="bg-white w-full h-full flex flex-col grow rounded-xl border-2 border-white overflow-hidden">
675 <React.Fragment key={iframeKey}>
676 <iframe
677 srcDoc={code}
679 className="w-full grow"
680 />
681 </React.Fragment>
682 </div>
683 </div>

ideaScoreREADME.md1 match

@dcm31โ€ขUpdated 2 months ago
44## Technical Details
45
46- Built using React for the UI components
47- Server-side rendering for fast initial page loads
48- LastLogin for secure Google authentication

forkyApp.tsx2 matches

@stdโ€ขUpdated 2 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { useState } from "https://esm.sh/react@18.2.0";
3
4export function App() {

forkyREADME.md2 matches

@stdโ€ขUpdated 2 months ago
12- Preserves the entire project structure, including all files and directories
13- Maintains project metadata (descriptions, images, etc.)
14- Clean, responsive UI built with React and TailwindCSS
15
16## Prerequisites
33โ”œโ”€โ”€ frontend
34โ”‚ โ”œโ”€โ”€ components
35โ”‚ โ”‚ โ””โ”€โ”€ App.tsx # Main React component
36โ”‚ โ”œโ”€โ”€ index.html # HTML entry point
37โ”‚ โ””โ”€โ”€ index.tsx # Frontend JavaScript entry point
Discord-to-Linear

Discord-to-Linear4 file matches

@charmaineโ€ขUpdated 10 hours ago
Discord -> Linear ticket based on emoji reaction trigger

MiniAppStarter10 file matches

@moeโ€ขUpdated 15 hours 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