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/$1?q=react&page=1179&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 16324 results for "react"(6607ms)

skullcatclient.tsx3 matches

@jxnblk•Updated 2 months ago
1/** @jsxImportSource https://esm.sh/react@15 */
2import React from "https://esm.sh/react@15";
3import { render } from "https://esm.sh/react-dom@15";
4
5import Skullcat from "./App.tsx";

timelineApp.tsx9 matches

@shouser•Updated 2 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0?dev */
2import { NewGameForm } from "/frontend/components/NewGameForm.tsx";
3import { PlayerForm } from "/frontend/components/PlayerForm.tsx";
4import { PlayerList } from "/frontend/components/PlayerList.tsx";
5import { Card, CARD_SETS, CardSet, Game, GameState, Player } from "/shared/types.ts";
6import { motion, Reorder } from "https://esm.sh/motion/react?deps=react@18.2.0&dev=true";
7import React, { useEffect, useRef, useState } from "https://esm.sh/react@18.2.0?dev";
8
9// Define the different views/routes
15 onReorder: (items: Card[]) => void;
16 allowDrag: boolean;
17 renderItem: (item: Card, index: number) => React.ReactNode;
18 className?: string;
19}
23 const [draggedOverIndex, setDraggedOverIndex] = useState<number | null>(null);
24
25 const handleDragStart = (e: React.DragEvent<HTMLDivElement>, item: Card) => {
26 if (!allowDrag) return;
27 setDraggedItem(item);
31 };
32
33 const handleDragOver = (e: React.DragEvent<HTMLDivElement>, index: number) => {
34 e.preventDefault();
35 if (!draggedItem) return;
37 };
38
39 const handleDrop = (e: React.DragEvent<HTMLDivElement>, index: number) => {
40 e.preventDefault();
41 if (!draggedItem) return;
515 const current = card.id === gameState.currentCard?.id;
516 return (
517 <React.Fragment key={card.id}>
518 <Reorder.Item
519 value={card}
537 </motion.div>
538 </Reorder.Item>
539 </React.Fragment>
540 );
541 })}

skullcatPaused.tsx2 matches

@jxnblk•Updated 2 months ago
1/** @jsxImportSource https://esm.sh/react@15 */
2import React from 'https://esm.sh/react@15'
3import { Block } from 'https://esm.sh/rebass@0.2.4'
4import Centered from './Centered.tsx'

skullcatX.tsx2 matches

@jxnblk•Updated 2 months ago
1/** @jsxImportSource https://esm.sh/react@15 */
2
3import React from 'https://esm.sh/react@15'
4import {
5 d,

skullcatTriangle.tsx2 matches

@jxnblk•Updated 2 months ago
1/** @jsxImportSource https://esm.sh/react@15 */
2import React from 'https://esm.sh/react@15'
3import {
4 d,

skullcatTachyons.tsx2 matches

@jxnblk•Updated 2 months ago
1/** @jsxImportSource https://esm.sh/react@15 */
2import React from 'https://esm.sh/react@15'
3import Tachyon from './Tachyon.tsx'
4

skullcatTachyon.tsx2 matches

@jxnblk•Updated 2 months ago
1/** @jsxImportSource https://esm.sh/react@15 */
2import React from 'https://esm.sh/react@15'
3import {
4 d,

skullcatSvg.tsx2 matches

@jxnblk•Updated 2 months ago
1/** @jsxImportSource https://esm.sh/react@15 */
2
3import React from 'https://esm.sh/react@15'
4
5import {

skullcatStage.tsx4 matches

@jxnblk•Updated 2 months ago
1/** @jsxImportSource https://esm.sh/react@15 */
2import React from 'https://esm.sh/react@15'
3import getFrame from './get-frame.tsx'
4import Frame from './Frame.tsx'
42}
43
44class Stage extends React.Component {
45 shouldComponentUpdate (nextProps) {
46 return nextProps.step !== this.props.step
239 )
240
241 const ghostFrame = flip ? React.cloneElement(frame) : false
242
243 return (

skullcatSkullRightMagenta.tsx2 matches

@jxnblk•Updated 2 months ago
1/** @jsxImportSource https://esm.sh/react@15 */
2import React from 'https://esm.sh/react@15'
3import SkullRight from './SkullRight.tsx'
4

reactHonoStarter4 file matches

@halfstack•Updated 18 hours ago

MiniAppStarter10 file matches

@moe•Updated 20 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