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/$%7Bart_info.art.src%7D?q=react&page=167&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 9781 results for "react"(1762ms)

FixItWandEmailTemplate.tsx3 matches

@wolf•Updated 2 weeks ago
1/** @jsxImportSource https://esm.sh/react@19.0.0 */
2
3import React from "https://esm.sh/react@19.0.0";
4
5interface EmailTemplateProps {
7}
8
9export const EmailTemplate: React.FC<EmailTemplateProps> = ({ magicLink }) => {
10 return (
11 <div>

ysrmain.tsx3 matches

@ysr_0•Updated 2 weeks 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, useState } from "https://esm.sh/react@18.2.0";
4
5function App() {

earningReferralAppmain.tsx3 matches

@Love_78•Updated 2 weeks 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() {

JobPostingmain.tsx3 matches

@MainaW•Updated 2 weeks 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, useState } from "https://esm.sh/react@18.2.0";
4
5function JobPostingForm({ onSubmit }) {

textToAudioPlayerAudioPlayer.ts4 matches

@dcm31•Updated 2 weeks ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState, useEffect, useRef } from "https://esm.sh/react@18.2.0";
3
4interface AudioPlayerProps {
269
270 // Handle seek
271 const handleSeek = (e: React.ChangeEvent<HTMLInputElement>) => {
272 const seekTime = parseFloat(e.target.value);
273 setCurrentTime(seekTime);
356 } else if (usingFallback) {
357 // For Web Speech API, use the seek functionality
358 const e = { target: { value: String(newTime) } } as React.ChangeEvent<HTMLInputElement>;
359 handleSeek(e);
360 }

textToAudioPlayerindex.ts4 matches

@dcm31•Updated 2 weeks ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React from "https://esm.sh/react@18.2.0";
3import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
4import { Hono } from "https://deno.land/x/hono@v3.11.7/mod.ts";
5import { cors } from "https://deno.land/x/hono@v3.11.7/middleware.ts";
9
10/**
11 * Client-only code that renders the React application
12 */
13function client() {

textToAudioPlayerApp.ts4 matches

@dcm31•Updated 2 weeks ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState } from "https://esm.sh/react@18.2.0";
3import { AudioPlayer } from "./AudioPlayer.ts";
4
8
9 // Function to handle text input changes
10 const handleTextChange = (e: React.ChangeEvent<HTMLTextAreaElement>) => {
11 setInputText(e.target.value);
12 };
13
14 // Function to handle form submission
15 const handleSubmit = (e: React.FormEvent) => {
16 e.preventDefault();
17

enthusiasticCopperEarthwormmain.tsx2 matches

@Sophia370•Updated 2 weeks ago
1/** @jsxImportSource https://esm.sh/react */
2import { renderToString } from "npm:react-dom/server";
3
4export default async function(req: Request) {

linkInBioTemplatemain.tsx2 matches

@Sophia370•Updated 2 weeks ago
1/** @jsxImportSource https://esm.sh/react */
2import { renderToString } from "npm:react-dom/server";
3
4export default async function(req: Request) {

SimpleAudioPlayerPWAapp.tsx6 matches

@dcm31•Updated 2 weeks 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";
4import { voices, getRandomVoice } from "./utils/voices.tsx";
5
44
45 // Handle text input change
46 const handleTextChange = (e: React.ChangeEvent<HTMLTextAreaElement>) => {
47 setText(e.target.value);
48 setError("");
115
116 // Handle seeking
117 const handleSeek = (e: React.ChangeEvent<HTMLInputElement>) => {
118 if (!audioRef.current) return;
119 const newTime = parseFloat(e.target.value);
145
146 // Handle voice selection
147 const handleVoiceChange = (e: React.ChangeEvent<HTMLSelectElement>) => {
148 setSelectedVoice(e.target.value);
149 };

StarterPackFeeds10 file matches

@moe•Updated 5 hours ago
Hono + React + Tailwind + Farcaster Mini App Starter Project

new_website

@wolf•Updated 11 hours 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