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=534&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 5630 results for "react"(471ms)

statusmain.tsx3 matches

@rareadmin•Updated 8 months ago
1/** @jsxImportSource https://esm.sh/react */
2import { sqlite } from "https://esm.town/v/std/sqlite?v=6";
3import { html } from "https://esm.town/v/stevekrouse/html";
4import { SparklineSVG } from "https://esm.town/v/stevekrouse/sparklineSVGReact";
5import { renderToString } from "npm:react-dom/server";
6
7function StatusRow({ rows }) {

fluxImageGeneratormain.tsx4 matches

@isidentical•Updated 8 months ago
2// It features a clean UI with an input field for the prompt and a button to generate the image.
3// The generated image is displayed below the input field.
4// React is used for the UI and the fal.ai serverless client for image generation.
5// The app measures and displays the latency for each image generation.
6// The background features randomly placed pixelart lightning bolts in neon yellow.
7
8/** @jsxImportSource https://esm.sh/react */
9import * as fal from "https://esm.sh/@fal-ai/serverless-client";
10import React, { useEffect, useState } from "https://esm.sh/react";
11import { createRoot } from "https://esm.sh/react-dom/client";
12import { blob } from "https://esm.town/v/std/blob";
13

servermain.tsx3 matches

@stevekrouse•Updated 8 months ago
1/** @jsxImportSource https://esm.sh/react */
2import React, { useState, useEffect } from "https://esm.sh/react";
3import { createRoot } from "https://esm.sh/react-dom/client";
4import { Tldraw } from "https://esm.sh/@tldraw/tldraw@2.3.0";
5

serverREADME.md1 match

@stevekrouse•Updated 8 months ago
1tldraw example with builder, for consistent React versions.
2
3Migrated from folder: Archive/server

homepagemain.tsx3 matches

@csl_•Updated 8 months ago
5 */
6
7/** @jsxImportSource https://esm.sh/react */
8import React, { useEffect, useState } from "https://esm.sh/react";
9import { createRoot } from "https://esm.sh/react-dom/client";
10
11function App() {

shySapphireLeopardmain.tsx4 matches

@stevekrouse•Updated 8 months ago
1/** @jsxImportSource https://esm.sh/react */
2import { renderToString } from "npm:react-dom/server";
3
4import React from "https://esm.sh/react";
5import { createRoot } from "https://esm.sh/react-dom/client";
6
7function App() {

requestCollectormain.tsx4 matches

@maxm•Updated 8 months ago
2 * This request collector val saves information about incoming requests
3 * and displays summary statistics on the home page. It uses SQLite for
4 * persistence and server-side React for rendering the UI. Users can click
5 * on a request ID to view full details of that request.
6 */
7
8/** @jsxImportSource https://esm.sh/react */
9import React from "https://esm.sh/react";
10import { renderToString } from "https://esm.sh/react-dom/server";
11
12interface RequestData {

townGenmain.tsx5 matches

@cofsana•Updated 8 months ago
12 * Sub-functionalities are now listed under the main functionality to help describe it better.
13 */
14/** @jsxImportSource https://esm.sh/react */
15import React, { useEffect, useState } from "https://esm.sh/react";
16import { createRoot } from "https://esm.sh/react-dom/client";
17
18// Simulated API for Hono and Deno features
99const npmPackages = {
100 frontend: [
101 "react",
102 "vue",
103 "angular",
180 "babylon.js",
181 "aframe",
182 "react-three-fiber",
183 "cannon-es",
184 "ammo.js",

multirouteHonomain.tsx5 matches

@cofsana•Updated 8 months ago
1/**
2 * This val creates a simple website for Janic Business Group, a business consulting firm.
3 * It uses React for the frontend and Hono for the backend routing.
4 * The website includes a home page, about page, and services page.
5 */
6/** @jsxImportSource https://esm.sh/react */
7import React from "https://esm.sh/react";
8import { createRoot } from "https://esm.sh/react-dom/client";
9import { Hono } from "https://esm.sh/hono";
10import { jsx } from "https://esm.sh/hono/jsx";
13
14function App() {
15 const [page, setPage] = React.useState('home');
16
17 const renderPage = () => {

postmanClonemain.tsx4 matches

@maxm•Updated 8 months ago
1/**
2 * This val creates a Postman-like interface for testing HTTP requests directly in the browser.
3 * It uses React for the UI and the Fetch API to make requests.
4 * The server function serves the HTML and handles the API requests.
5 */
6
7/** @jsxImportSource https://esm.sh/react */
8import React, { useState } from "https://esm.sh/react";
9import { createRoot } from "https://esm.sh/react-dom/client";
10
11function App() {

vt-discord4 file matches

@boucher•Updated 4 hours ago
Starter template with client-side React & Hono server

diceRollerUI1 file match

@dcm31•Updated 9 hours ago
A web-based dice roller using React on Val Town
officialrajdeepsingh
Follow me if you learn more about JavaScript | TypeScript | React.js | Next.js | Linux | NixOS | Frontend Developer | https://linktr.ee/officialrajdeepsingh