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/image-url.jpg%20%22Image%20title%22?q=react&page=881&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 12597 results for "react"(1855ms)

linkInBioTemplatemain.tsx2 matches

@charmaine•Updated 2 months 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 2 months 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 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 React, { useEffect, useRef, useState } from "https://esm.sh/react@18.2.0";
4import { v4 as uuidv4 } from "https://esm.sh/uuid";
5

prominentCopperPumamain.tsx4 matches

@Saqibpool62•Updated 2 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState } from "https://esm.sh/react@18.2.0";
3import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
4
5function App() {
8 const [error, setError] = useState('');
9
10 const handleDownload = async (e: React.FormEvent) => {
11 e.preventDefault();
12 setError('');

tidyPlumBonobomain.tsx3 matches

@SIR_FESTUS•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
5// Rest of the existing game code remains the same...

honoStarterApp.tsx3 matches

@nbbaier•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() {
6 return (
7 <div>
8 <h1>Val Town React + Hono Starter</h1>
9 I've been clicked
10 <button type="button" onClick={() => setClicked((c) => c + 1)}>

projectConverterDraftindex.ts1 match

@charmaine•Updated 2 months ago
28});
29
30// Add the /convert endpoint to handle the React app's fetch calls
31app.post("/convert", async (c) => {
32 try {

projectConverterDraftREADME.md2 matches

@charmaine•Updated 2 months ago
8- `style.css` - CSS styles for the application
9- `favicon.svg` - Icon for the application
10- `index.tsx` - JavaScript entry point for React
11- `components/` - React components

projectConverterDraftindex.tsx3 matches

@charmaine•Updated 2 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React from "https://esm.sh/react@18.2.0";
3import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
4import App from "./components/App.tsx";
5

projectConverterDraftApp.tsx2 matches

@charmaine•Updated 2 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState, useEffect } from "https://esm.sh/react@18.2.0";
3import { Todo } from "../../shared/types.ts";
4

reactHonoStarter4 file matches

@lightweight•Updated 22 hours ago

reactHonoStarter4 file matches

@std•Updated 23 hours ago
Starter template with client-side React & Hono server
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