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%22Optional%20title%22?q=react&page=874&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 9479 results for "react"(1500ms)

whoIsHiringHomemain.tsx2 matches

@vawogbemi•Updated 8 months ago
1/** @jsxImportSource https://esm.sh/react */
2import { Dispatch } from "https://esm.sh/react";
3
4export default function Home(

whoIsHiringREADME.md1 match

@vawogbemi•Updated 8 months ago
4HonoJs doesn't support render for async components so the style is off for the home page.
5
6And the state changes don't register in html rendering so thinking of using react instead.
7
8Migrated from folder: whoIsHiring/whoIsHiring

zhangxiaokemain.tsx6 matches

@webup•Updated 8 months ago
1// This approach will create a personal card using React and Lucide React icons.
2// We'll use ESM imports for React and Lucide icons.
3// The card will be responsive and styled using Tailwind CSS classes.
4
5/** @jsxImportSource https://esm.sh/react */
6import React from "https://esm.sh/react";
7import { createRoot } from "https://esm.sh/react-dom/client";
8import { FileText, Trophy, Briefcase, Palette, Book, MessageCircle } from "https://esm.sh/lucide-react";
9
10function PersonalCard() {

snakeclonemain.tsx3 matches

@veddevv•Updated 8 months ago
1/** @jsxImportSource https://esm.sh/react */
2import React, { useState, useEffect, useRef } from "https://esm.sh/react";
3import { createRoot } from "https://esm.sh/react-dom/client";
4
5const CANVAS_SIZE = 400;

flaapyclonemain.tsx6 matches

@veddevv•Updated 8 months ago
1// This val creates a Flappy Bird game with a slot machine feature that randomly activates
2// and adds new features throughout the game. It uses React for rendering the UI and
3// manages game state on the client-side. The game logic is implemented using
4// requestAnimationFrame for smooth animation.
5
6/** @jsxImportSource https://esm.sh/react */
7import React, { useState, useEffect, useRef } from "https://esm.sh/react";
8import { createRoot } from "https://esm.sh/react-dom/client";
9
10const GAME_WIDTH = 400;
279 <Bird y={birdY} invincible={activeFeatures.invincibility} />
280 {pipes.map((pipe, index) => (
281 <React.Fragment key={index}>
282 <Pipe x={pipe.x} height={pipe.height} isTop={true} isGhost={pipe.isGhost} />
283 <Pipe x={pipe.x} height={GAME_HEIGHT - pipe.height - PIPE_GAP} isTop={false} isGhost={pipe.isGhost} />
284 </React.Fragment>
285 ))}
286 <div style={{ position: 'absolute', top: '10px', left: '10px', fontSize: '24px' }}>

WundergroundStationDisplayV2main.tsx4 matches

@Croniac•Updated 8 months ago
1// This approach will fetch weather data from a Wunderground API, parse the JSON response,
2// and display a simplified version of the current conditions in separate tiles. We'll use
3// the fetch API to make the HTTP request and React for rendering the UI.
4
5/** @jsxImportSource https://esm.sh/react */
6import React, { useEffect, useState } from "https://esm.sh/react";
7import { createRoot } from "https://esm.sh/react-dom/client";
8
9function calculateDensityAltitude(elevation, temperature, pressure) {

jsonToDalleFormmain.tsx4 matches

@weaverwhale•Updated 8 months ago
1/** @jsxImportSource https://esm.sh/react */
2import OpenAI from "https://esm.sh/openai";
3import React, { useState } from "https://esm.sh/react";
4import { createRoot } from "https://esm.sh/react-dom/client";
5
6import { systemPrompt } from "https://esm.town/v/weaverwhale/jtdPrompt";
186 }
187
188 // Prepare the HTML with the React root element
189 const html = `
190 <html>

leaderboardAppmain.tsx3 matches

@guillermodoghel•Updated 8 months ago
1/** @jsxImportSource https://esm.sh/react */
2import React, { useEffect, useRef, useState } from "https://esm.sh/react";
3import { createRoot } from "https://esm.sh/react-dom/client";
4
5function App() {

sqliteAdminDashboardmain.tsx4 matches

@stevekrouse•Updated 8 months ago
1// This val creates a SQLite dashboard admin panel with a sidebar for table names
2// It uses React for the frontend and the Val Town SQLite API for database operations
3// Now includes functionality to edit rows, using rowid or all columns as identifiers
4// and the ability to add new rows to tables
5// Column types are displayed next to column names in the UI
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";
10import { vtTokenSessionAuth } from "https://esm.town/v/stevekrouse/vtTokenSessionAuthSafe";
11

QR_Generatormain.tsx3 matches

@muhammad_owais_warsi•Updated 8 months ago
1/** @jsxImportSource https://esm.sh/react */
2import React, { useState } from "https://esm.sh/react";
3import { createRoot } from "https://esm.sh/react-dom/client";
4
5function App() {

reactHonoStarter4 file matches

@texoport•Updated 13 hours ago

new_website

@wolf•Updated 2 days 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