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=1425&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 16305 results for "react"(5306ms)

adroitCoffeeCrocodileREADME.md2 matches

@maxmโ€ขUpdated 4 months ago
7Run an editor like so:
8```tsx
9/** @jsxImportSource https://esm.sh/react */
10import { renderToString } from "npm:react-dom/server";
11
12export default async function(req: Request): Promise<Response> {

MrIdentifymain.tsx4 matches

@efaztheisticโ€ขUpdated 4 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<string | null>(null);
9
10 const handleImageUpload = async (e: React.ChangeEvent<HTMLInputElement>) => {
11 const file = e.target.files?.[0];
12 if (file) {

urgentVoicemailAppmain.tsx3 matches

@Vanshii_244โ€ขUpdated 4 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 LandingPage() {

healthCheckmain.tsx3 matches

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

gameAppmain.tsx3 matches

@Azan0336โ€ขUpdated 4 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState, useEffect } from "https://esm.sh/react@18.2.0";
3import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
4
5const CARD_SYMBOLS = ['๐ŸŽ', '๐ŸŒ', '๐Ÿ‡', '๐Ÿ‰', '๐ŸŠ', '๐Ÿ‹', '๐Ÿ“', '๐Ÿ’'];

boldEmeraldWildebeestmain.tsx7 matches

@gigmxโ€ขUpdated 4 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useCallback, useEffect, useState } from "https://esm.sh/react@18.2.0";
3import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
4import { Light as SyntaxHighlighter } from 'https://esm.sh/react-syntax-highlighter@15.5.0';
5import json from 'https://esm.sh/react-syntax-highlighter@15.5.0/dist/esm/languages/hljs/json';
6import { docco } from 'https://esm.sh/react-syntax-highlighter@15.5.0/dist/esm/styles/hljs';
7
8SyntaxHighlighter.registerLanguage('json', json);
25 const [inputAccount, setInputAccount] = useState("");
26
27 const ws = React.useRef(null);
28
29 const sendSubscription = (type, keys = []) => {

realTimeDateDifferenceFormmain.tsx3 matches

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

EquityCalculatormain.tsx3 matches

@bheemanadamโ€ขUpdated 4 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, useMemo, useState } from "https://esm.sh/react@18.2.0";
4
5// Utility for financial calculations

creativeTomatoSailfishmain.tsx3 matches

@allโ€ขUpdated 4 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState, useRef } from "https://esm.sh/react@18.2.0";
3import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
4
5function FoundationStoneGenerator() {

statusmain.tsx3 matches

@georgewittemanโ€ขUpdated 4 months ago
1/** @jsxImportSource https://esm.sh/react */
2import { sqlite } from "https://esm.town/v/std/sqlite?v=6";
3import { html } from "https://esm.town/v/stevekrouse/html";
4import { SparklineSVG } from "https://esm.town/v/stevekrouse/sparklineSVGReact";
5import { renderToString } from "npm:react-dom/server";
6
7type Row = [string, number, number, number];

reactHonoStarter4 file matches

@halfstackโ€ขUpdated 10 hours ago

MiniAppStarter10 file matches

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