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=474&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 8276 results for "react"(973ms)

positiveBlackPeafowlmain.tsx2 matches

@charmaine•Updated 1 month ago
1/** @jsxImportSource https://esm.sh/react */
2import { renderToString } from "npm:react-dom/server";
3
4export default async function(req: Request) {

smoothAquamarineTahrmain.tsx2 matches

@charmaine•Updated 1 month ago
1/** @jsxImportSource https://esm.sh/react */
2import { renderToString } from "npm:react-dom/server";
3
4export default async function(req: Request) {

wiseJadeRattlesnakemain.tsx2 matches

@charmaine•Updated 1 month ago
1/** @jsxImportSource https://esm.sh/react */
2import { renderToString } from "npm:react-dom/server";
3
4export default async function(req: Request) {

truthfulOrangeLlamamain.tsx2 matches

@charmaine•Updated 1 month ago
1/** @jsxImportSource https://esm.sh/react */
2import { renderToString } from "npm:react-dom/server";
3
4export default async function(req: Request) {

spellbindingGrayChinchillamain.tsx2 matches

@charmaine•Updated 1 month ago
1/** @jsxImportSource https://esm.sh/react */
2import { renderToString } from "npm:react-dom/server";
3
4export default async function(req: Request) {

ampleTanBuzzardmain.tsx2 matches

@charmaine•Updated 1 month ago
1/** @jsxImportSource https://esm.sh/react */
2import { renderToString } from "npm:react-dom/server";
3
4export default async function(req: Request) {

constantAmaranthGazellemain.tsx2 matches

@charmaine•Updated 1 month ago
1/** @jsxImportSource https://esm.sh/react */
2import { renderToString } from "npm:react-dom/server";
3
4export default async function(req: Request) {

linkInBioTemplatemain.tsx2 matches

@charmaine•Updated 1 month ago
1/** @jsxImportSource https://esm.sh/react */
2import { renderToString } from "npm:react-dom/server";
3
4export default async function(req: Request) {

projectConverterDraftconverter.ts12 matches

@charmaine•Updated 1 month ago
194 try {
195 // Detect basic app characteristics
196 const usesReact = input.includes("@jsxImportSource") || input.includes("createRoot");
197
198 // Extract the CSS
261 });
262
263 // Handle React apps
264 if (usesReact) {
265 // Create App component
266 let appComponentContent = appContent
267 ? `/** @jsxImportSource https://esm.sh/react@18.2.0 */
268import React, { useState, useEffect } from "https://esm.sh/react@18.2.0";
269import { AppData } from "../../shared/types.ts";
270
280
281export default App;`
282 : `/** @jsxImportSource https://esm.sh/react@18.2.0 */
283import React, { useState, useEffect } from "https://esm.sh/react@18.2.0";
284import { AppData } from "../../shared/types.ts";
285
333 files.push({
334 path: "frontend/index.tsx",
335 content: `/** @jsxImportSource https://esm.sh/react@18.2.0 */
336import React from "https://esm.sh/react@18.2.0";
337import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
338import App from "./components/App.tsx";
339
374 });
375 } else {
376 // Create a basic HTML file if not using React
377 files.push({
378 path: "frontend/index.html",
484
485- \`backend/\` - Server code using Hono
486- \`frontend/\` - ${usesReact ? "React components" : "HTML, CSS and JavaScript"} and static assets
487- \`shared/\` - Types and utilities shared between frontend and backend
488

toolmain.tsx3 matches

@data•Updated 1 month ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
3import React, { useEffect, useRef, useState } from "https://esm.sh/react@18.2.0";
4import { v4 as uuidv4 } from "https://esm.sh/uuid";
5

vt-discord4 file matches

@boucher•Updated 1 day ago
Starter template with client-side React & Hono server

diceRollerUI1 file match

@dcm31•Updated 1 day ago
A web-based dice roller using React on Val Town
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