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=144&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 11469 results for "react"(801ms)

cardamumPlayerHand.tsx3 matches

@febโ€ขUpdated 5 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React from "https://esm.sh/react@18.2.0";
3import { Card as CardType } from "../../shared/types";
4import Card from "./Card";
12}
13
14const PlayerHand: React.FC<PlayerHandProps> = ({
15 cards,
16 onCardClick,

cardamumCard.tsx3 matches

@febโ€ขUpdated 5 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React from "https://esm.sh/react@18.2.0";
3import { Card as CardType } from "../../shared/types";
4
9}
10
11const Card: React.FC<CardProps> = ({ card, onClick, isPlayable = true }) => {
12 const getCardSymbol = () => {
13 switch (card.value) {

cardamumREADME.md2 matches

@febโ€ขUpdated 5 days ago
1# Multiplayer UNO Game
2
3A real-time multiplayer UNO card game built with React and Val Town.
4
5## Features
21โ”œโ”€โ”€ frontend/
22โ”‚ โ”œโ”€โ”€ components/
23โ”‚ โ”‚ โ”œโ”€โ”€ App.tsx # Main React component
24โ”‚ โ”‚ โ”œโ”€โ”€ Card.tsx # UNO card component
25โ”‚ โ”‚ โ”œโ”€โ”€ GameBoard.tsx # Game board display

FullstackStarterApp.tsx3 matches

@wolfโ€ขUpdated 5 days 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 <button onClick={() => setClicked((c) => c + 1)}>{clicked}</button> times
10 </div>

LiveStormMCPrules9 matches

@supagroovaโ€ขUpdated 5 days ago
215- **Storage Strategy:** Only use backend storage if explicitly required; prefer
216 simple static client-side sites
217- **React Configuration:** When using React libraries, pin versions with
218 `?deps=react@18.2.0,react-dom@18.2.0` and start the file with
219 `/** @jsxImportSource https://esm.sh/react@18.2.0 */`
220- Ensure all React dependencies and sub-dependencies are pinned to the same
221 version
222- **Styling:** Default to using TailwindCSS via
313 - Always run table creation before querying
314
3153. **React Configuration:**
316 - All React dependencies must be pinned to 18.2.0
317 - Always include `@jsxImportSource https://esm.sh/react@18.2.0` at the top of
318 React files
319 - Rendering issues often come from mismatched React versions
320
3214. **File Handling:**

AppkyBookingFlow.tsx5 matches

@OssyNachโ€ขUpdated 5 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState, useEffect } from 'https://esm.sh/react@18.2.0';
3import { TravelPackage, UserProfile, Booking, PaymentRequest } from '../../shared/types.ts';
4import { formatCurrency, formatDate } from '../../shared/utils.ts';
88
89 // Process payment
90 const processPayment = async (e: React.FormEvent) => {
91 e.preventDefault();
92
499 <div className="flex items-center justify-center">
500 {[1, 2, 3].map((step) => (
501 <React.Fragment key={step}>
502 <div
503 className={`w-10 h-10 rounded-full flex items-center justify-center ${
525 ></div>
526 )}
527 </React.Fragment>
528 ))}
529 </div>

AppkyPackageDetails.tsx2 matches

@OssyNachโ€ขUpdated 5 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState, useEffect } from 'https://esm.sh/react@18.2.0';
3import { TravelPackage, Agency } from '../../shared/types.ts';
4import { formatCurrency, formatDate, calculateDays } from '../../shared/utils.ts';

AppkySearchPage.tsx3 matches

@OssyNachโ€ขUpdated 5 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState, useEffect } from 'https://esm.sh/react@18.2.0';
3import { TravelPackage, SearchParams } from '../../shared/types.ts';
4import { PackageCard } from './PackageCard.tsx';
35
36 // Handle search form submission
37 const handleSearch = (e: React.FormEvent) => {
38 e.preventDefault();
39 setPage(1); // Reset to first page

AppkyPackageCard.tsx2 matches

@OssyNachโ€ขUpdated 5 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React from 'https://esm.sh/react@18.2.0';
3import { TravelPackage } from '../../shared/types.ts';
4import { formatCurrency, formatDate, calculateDays } from '../../shared/utils.ts';

AppkyDashboard.tsx3 matches

@OssyNachโ€ขUpdated 5 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState } from 'https://esm.sh/react@18.2.0';
3import { TravelPackage } from '../../shared/types.ts';
4import { PackageCard } from './PackageCard.tsx';
16 const [travelers, setTravelers] = useState('1');
17
18 const handleSearch = (e: React.FormEvent) => {
19 e.preventDefault();
20 onSearch();

a_new_website4 file matches

@wolfโ€ขUpdated 9 hours ago
Starter template with client-side React & Hono server

MiniAppStarter9 file matches

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