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=741&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 8598 results for "react"(993ms)

personalSocialCardGeneratormain.tsx4 matches

@mumu•Updated 4 months ago
1/** @jsxImportSource https://esm.sh/react */
2import { Award, Book, Briefcase, Heart, LucideIcon, MapPin, Target, UserCircle } from "https://esm.sh/lucide-react";
3import React, { useState } from "https://esm.sh/react";
4import { createRoot } from "https://esm.sh/react-dom/client";
5
6function App() {

cerebras_codermain.tsx6 matches

@adnane007al•Updated 4 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import Cerebras from "https://esm.sh/@cerebras/cerebras_cloud_sdk";
3import Chart from "https://esm.sh/chart.js/auto";
4import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
5import { Prism as SyntaxHighlighter } from "https://esm.sh/react-syntax-highlighter";
6import { tomorrow } from "https://esm.sh/react-syntax-highlighter/dist/esm/styles/prism";
7import React, { useEffect, useState } from "https://esm.sh/react@18.2.0";
8
9const STARTER_PROMPTS = [
136 }, []);
137
138 async function handleSubmit(e: React.FormEvent) {
139 e.preventDefault();
140 setLoading(true);

icsviewermain.tsx3 matches

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

icsviewerREADME.md1 match

@prashamtrivedi•Updated 4 months ago
21## Technical Details
22
23- Built with React 18.2.0 and TailwindCSS
24- Handles ICS file parsing and display
25- No data persistence (events are stored in memory only)

opengraphImageCreatormain.tsx6 matches

@itseieio•Updated 4 months ago
1/** @jsxImportSource https://esm.sh/react */
2import React, { useState, useRef, useEffect } from "https://esm.sh/react";
3import { createRoot } from "https://esm.sh/react-dom/client";
4
5// List of web-safe and popular fonts, now including monospace
62 const canvasRef = useRef<HTMLCanvasElement>(null);
63
64 const handleImageUpload = (e: React.ChangeEvent<HTMLInputElement>) => {
65 const file = e.target.files?.[0];
66 if (file) {
133 };
134
135 const startDrag = (id: string, e: React.MouseEvent<HTMLCanvasElement>) => {
136 setDraggedNode(id);
137 const canvas = canvasRef.current;
158 };
159
160 const handleMouseMove = (e: React.MouseEvent<HTMLCanvasElement>) => {
161 if (!draggedNode) return;
162

opengraphImageCreatormain.tsx6 matches

@stevekrouse•Updated 4 months ago
1/** @jsxImportSource https://esm.sh/react */
2import React, { useState, useRef, useEffect } from "https://esm.sh/react";
3import { createRoot } from "https://esm.sh/react-dom/client";
4
5// List of web-safe and popular fonts, now including monospace
62 const canvasRef = useRef<HTMLCanvasElement>(null);
63
64 const handleImageUpload = (e: React.ChangeEvent<HTMLInputElement>) => {
65 const file = e.target.files?.[0];
66 if (file) {
133 };
134
135 const startDrag = (id: string, e: React.MouseEvent<HTMLCanvasElement>) => {
136 setDraggedNode(id);
137 const canvas = canvasRef.current;
158 };
159
160 const handleMouseMove = (e: React.MouseEvent<HTMLCanvasElement>) => {
161 if (!draggedNode) return;
162

linkInBioTemplatemain.tsx2 matches

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

simpleChatAPImain.tsx3 matches

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

SermonGPTUImain.tsx12 matches

@manyone•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?dev";
3import ReactMarkdown from "https://esm.sh/react-markdown@9.0.1";
4import React, { ErrorInfo, StrictMode, useEffect, useRef, useState } from "https://esm.sh/react@18.2.0?dev";
5import remarkGfm from "https://esm.sh/remark-gfm@4.0.0";
6
19
20// New ErrorBoundary component
21class ErrorBoundary extends React.Component<
22 { children: React.ReactNode },
23 { hasError: boolean; error?: Error }
24>
25{
26 constructor(props: { children: React.ReactNode }) {
27 super(props);
28 this.state = { hasError: false };
226 };
227
228 const handleSubmit = async (e: React.FormEvent) => {
229 e.preventDefault();
230 setResponse("");
330 }}
331 >
332 <ReactMarkdown
333 remarkPlugins={[remarkGfm]}
334 components={{
358 >
359 {response}
360 </ReactMarkdown>
361 </div>
362 )}
536 <h2>{selectedSermon.theme}</h2>
537 <small>{new Date(selectedSermon.createdAt).toLocaleString()}</small>
538 <ReactMarkdown
539 remarkPlugins={[remarkGfm]}
540 components={{
564 >
565 {selectedSermon.content}
566 </ReactMarkdown>
567 </div>
568 );

legendaryRoseSwordfishmain.tsx3 matches

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

vt-discord4 file matches

@boucher•Updated 2 days ago
Starter template with client-side React & Hono server

diceRollerUI1 file match

@dcm31•Updated 2 days ago
A web-based dice roller using React on Val Town
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