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/$%7Bsuccess?q=react&page=1189&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 16188 results for "react"(1335ms)

OpenTownieCreateBranch.tsx3 matches

@loading•Updated 2 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0?dev */
2import React, { useState } from "https://esm.sh/react@18.2.0?dev";
3
4interface CreateBranchProps {
25 };
26
27 const handleSubmit = async (e: React.FormEvent) => {
28 e.preventDefault();
29

OpenTownieBranchControl.tsx3 matches

@loading•Updated 2 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0?dev */
2import React, { useEffect, useState } from "https://esm.sh/react@18.2.0?dev";
3import { CreateBranch } from "./CreateBranch.tsx";
4
84
85 // Handle branch selection change
86 const handleBranchChange = (e: React.ChangeEvent<HTMLSelectElement>) => {
87 const newBranchId = e.target.value;
88 setBranchId(newBranchId);

modestFuchsiaJellyfishmain.tsx2 matches

@Lilly•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) => {

md_crawlindex.tsx3 matches

@stevekrouse•Updated 2 months 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 { App } from "./components/App";
5

md_crawlMarkdownOutput.tsx2 matches

@stevekrouse•Updated 2 months ago
1// @jsxImportSource https://esm.sh/react@18.2.0
2import { useState, useRef, useEffect } from "https://esm.sh/react@18.2.0";
3
4interface MarkdownOutputProps {

md_crawlCrawlForm.tsx3 matches

@stevekrouse•Updated 2 months ago
1// @jsxImportSource https://esm.sh/react@18.2.0
2import { useState } from "https://esm.sh/react@18.2.0";
3
4interface CrawlFormProps {
11 const [depth, setDepth] = useState(3);
12
13 const handleSubmit = (e: React.FormEvent) => {
14 e.preventDefault();
15 if (!url) return;

md_crawlApp.tsx2 matches

@stevekrouse•Updated 2 months ago
1// @jsxImportSource https://esm.sh/react@18.2.0
2import { useState } from "https://esm.sh/react@18.2.0";
3import { CrawlForm } from "./CrawlForm";
4import { MarkdownOutput } from "./MarkdownOutput";

md_crawlREADME.md2 matches

@stevekrouse•Updated 2 months ago
19- `frontend/` - Client-side code
20 - `index.html` - Main HTML template
21 - `index.tsx` - Frontend React code
22 - `components/` - React components

svgEditorApp.tsx3 matches

@dcm31•Updated 2 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0?dev */
2import { useLocalStorage } from "https://esm.sh/react-use?dev&deps=react@18.2.0&react-dom@18.2.0";
3import React, { useState, useEffect } from "https://esm.sh/react@18.2.0?dev";
4import { Chat } from "./Chat.tsx";
5import { Login } from "./Login.tsx";

svgEditorSvgEditor.tsx4 matches

@dcm31•Updated 2 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0?dev */
2import React, { useState, useRef, useEffect } from "https://esm.sh/react@18.2.0?dev";
3
4interface SvgEditorProps {
51
52 // Handle SVG code editing
53 const handleCodeChange = (e: React.ChangeEvent<HTMLTextAreaElement>) => {
54 const newContent = e.target.value;
55 setSvgContent(newContent);
60
61 // Handle SVG file upload
62 const handleFileUpload = (e: React.ChangeEvent<HTMLInputElement>) => {
63 const file = e.target.files?.[0];
64 if (!file) return;

reactHonoStarter4 file matches

@halfstack•Updated 3 hours ago

MiniAppStarter10 file matches

@moe•Updated 6 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