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=1202&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 15898 results for "react"(2953ms)

project_updates_webhookWebhookForm.tsx8 matches

@shouser•Updated 2 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React from "https://esm.sh/react@18.2.0";
3
4export function WebhookForm({ onSubmit }: { onSubmit: () => void }) {
5 const [projectId, setProjectId] = React.useState("");
6 const [webhookUrl, setWebhookUrl] = React.useState("");
7 const [event, setEvent] = React.useState("FilesCreated");
8 const [isSubmitting, setIsSubmitting] = React.useState(false);
9 const [error, setError] = React.useState("");
10
11 const handleSubmit = async (e: React.FormEvent) => {
12 e.preventDefault();
13 setError("");

loanWebApplicationmain.tsx5 matches

@harsha_2506•Updated 2 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2/** @jsxImportSource https://esm.sh/react@18.2.0 */
3import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
4import React, { useState } from "https://esm.sh/react@18.2.0";
5import * as ReactJSXRuntime from "https://esm.sh/react@18.2.0/jsx-runtime";
6
7// Enhanced Bank Details with Private and Public Banks

tradingSignalsAppmain.tsx4 matches

@HTKhan19•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
5// Predefined VIP license keys, admin key, and public key
36 };
37
38 const handleKeySubmit = async (e: React.FormEvent) => {
39 e.preventDefault();
40

AntiSpamV2main.tsx5 matches

@wahobd•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
5const styles = {
287 const [showActivationMessage, setShowActivationMessage] = useState(false);
288
289 const handleSubmit = async (e: React.FormEvent) => {
290 e.preventDefault();
291 setError('');
463 const [copiedAll, setCopiedAll] = useState(false);
464
465 const handlePasswordSubmit = async (e: React.FormEvent) => {
466 e.preventDefault();
467 setError('');

pdf2vector_migratedmain.tsx3 matches

@dcm31•Updated 2 months ago
1/** @jsxImportSource https://esm.sh/react */
2import React, { useState, useEffect } from "https://esm.sh/react";
3import { createRoot } from "https://esm.sh/react-dom/client";
4import * as pdfjs from "https://cdn.jsdelivr.net/npm/pdfjs-dist@3.11.174/+esm";
5import { getBezierPath } from "https://esm.sh/perfect-freehand@1.2.0";

agentspacemain.tsx3 matches

@api•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, { useEffect, useRef, useState } from "https://esm.sh/react@18.2.0";
4import { v4 as uuidv4 } from "https://esm.sh/uuid";
5

succinctCrimsonKoimain.tsx3 matches

@sarittusch•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
5const NO_PHRASES = [
island

islandapp.tsx6 matches

@maxm•Updated 2 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import ReactDOM from "https://esm.sh/react-dom@18.2.0";
3import React, { useState } from "https://esm.sh/react@18.2.0";
4
5const GridGame = () => {
144};
145
146ReactDOM.createRoot(document.getElementById("root")).render(
147 <React.StrictMode>
148 <GridGame />
149 </React.StrictMode>,
150);

CyberMetaxmain.tsx5 matches

@CyberK14•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, { useEffect, useState } from "https://esm.sh/react@18.2.0";
4
5// Comprehensive Training Modules with more details
586 console.log("Creating root");
587 root.render(
588 <React.StrictMode>
589 <App />
590 </React.StrictMode>,
591 );
592 } else {

mandomain.tsx6 matches

@api•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, { useEffect, useState } from "https://esm.sh/react@18.2.0";
4import { v4 as uuidv4 } from "https://esm.sh/uuid";
5
1361 <div id="root" class="h-screen"></div>
1362<script type="module">
1363 import React from 'https://esm.sh/react@18.2.0';
1364 import { createRoot } from 'https://esm.sh/react-dom@18.2.0/client';
1365
1366 async function loadApp() {
1370
1371 const root = createRoot(document.getElementById('root'));
1372 root.render(React.createElement(App));
1373 } catch (error) {
1374 console.error('Failed to load application:', error);

MiniAppStarter10 file matches

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

ReactHonoStarterTests4 file matches

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