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/?q=react&page=694&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 9182 results for "react"(1064ms)

valentines_day_card_generatorimage_uploader5 matches

@shouser•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, { useCallback, useRef, useState } from "https://esm.sh/react@18.2.0";
4import { DATABASE_TABLENAME } from "./constants";
5
20 }, []);
21
22 const handleDrop = useCallback((event: React.DragEvent<HTMLDivElement>) => {
23 event.preventDefault();
24 event.stopPropagation();
54 }, [imageType]);
55
56 const handleDragOver = useCallback((event: React.DragEvent<HTMLDivElement>) => {
57 event.preventDefault();
58 event.stopPropagation();

valuableTomatoJellyfishmain.tsx2 matches

@tannu•Updated 2 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 **/
2import { renderToString } from "https://esm.sh/react-dom@18.2.0/server";
3
4export default (req: Request) => {

chatGPTClonemain.tsx4 matches

@Cpk•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
5function App() {
19 }, [messages]);
20
21 const handleSubmit = async (e: React.FormEvent) => {
22 e.preventDefault();
23 if (!inputMessage.trim()) return;

rentalPodcastAppmain.tsx4 matches

@Dharana•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 { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
4
5interface PodcastSpace {
39 }, []);
40
41 const handleBookingSubmit = async (e: React.FormEvent) => {
42 e.preventDefault();
43 try {

beamingChocolateWildfowlmain.tsx2 matches

@nav308•Updated 2 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 **/
2import { renderToString } from "https://esm.sh/react-dom@18.2.0/server";
3
4export default (req: Request) => {

invoiceMakerAppmain.tsx3 matches

@Sambe•Updated 2 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import autoTable from "https://esm.sh/jspdf-autotable@3.5.29";
3import jsPDF from "https://esm.sh/jspdf@2.5.1";
4import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
5import React, { useEffect, useRef, useState } from "https://esm.sh/react@18.2.0";
6import { blob } from "https://esm.town/v/std/blob";
7

calculatormain.tsx4 matches

@NiD•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, { useState } from "https://esm.sh/react@18.2.0";
4
5function Calculator() {
90 <html>
91 <head>
92 <title>React Calculator</title>
93 <meta name="viewport" content="width=device-width, initial-scale=1">
94 <style>${css}</style>

voiceControlCalculatormain.tsx3 matches

@NiD•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 { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
4
5function VoiceCalculator() {

statusstatus2 matches

@rkda•Updated 2 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { parseProject } from "https://esm.town/v/std/parseImportMeta/project";
3import { sqlite } from "https://esm.town/v/std/sqlite?v=6";
4import { html } from "https://esm.town/v/stevekrouse/html";
5import { renderToString } from "npm:react-dom@18.2.0/server";
6import config from "./config.json" with { type: "json" };
7import { SparklineSVG } from "./sparklineSVG";

statussparklineSVG1 match

@rkda•Updated 2 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2export function SparklineSVG({ strokeWidth = 2, data = [], fill = "none", stroke = "black" }) {
3 const padding = 2;

IClickWolf4 file matches

@vtTestLocal•Updated 10 hours ago
Starter template with client-side React & Hono server

vt-discord4 file matches

@boucher•Updated 5 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