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=526&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 8585 results for "react"(1118ms)

uprightSalmonApemain.tsx3 matches

@Titanic•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 = [

valentinemain.tsx3 matches

@parths239•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 = [

absoluteBoutiqueStoremain.tsx3 matches

@nickynole•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
5// Updated Product Data with High-Quality Imagery

statusstatus2 matches

@nickynole•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

@nickynole•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;

upstandingPurpleHeronmain.tsx3 matches

@nickynole•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
5// Updated Product Data with High-Quality Imagery

brainrotdepsmain.tsx1 match

@stainless_em•Updated 2 months ago
3const js = await memoizeByVersion(async () => {
4 const url =
5 "https://deno.bundlejs.com/?file&text=export%20%7Bdefault%20as%20toIt%7D%20from%20%22browser-readablestream-to-it%22;%0Aexport%20%7Bdefault%20as%20jsonpatch%7D%20from%20%22fast-json-patch@3.1.1%22;%0Aexport%20%7B%20TextLineStream%20%7D%20from%20%22https://esm.sh/jsr/@std/streams@1.0.9/text_line_stream%22;%0Aimport%20*%20as%20preact%20from%20%22preact@10%22;%0Aimport%20*%20as%20preactHooks%20from%20%22preact@10/hooks%22;%0Aimport%20%7Bjsx%20as%20jsx_,%20jsxs%20as%20jsxs_,%20Fragment%20as%20Fragment_%7D%20from%20%22preact@10/jsx-runtime%22;%0Aexport%20const%20React%20=%20%7B...preact,%20...preactHooks%7D%0Aexport%20let%20jsx%20=%20jsx_,%20jsxs%20=%20jsxs_,%20Fragment%20=%20Fragment_%0Aexport%20function%20setJsx(jsx_,%20jsxs_,%20Fragment_)%20%7B%0A%20%20jsx%20=%20jsx_,%20jsxs%20=%20jsxs_,%20Fragment%20=%20Fragment_%0A%7D";
6 return `/*\nbundled version of this:\n\`\`\`js\n${new URL(url).searchParams.get("text")}\n\`\`\`\n*/\n\n`
7 + await (await fetch(url)).text();

superPeachParrotfishmain.tsx6 matches

@nadaamiinn•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 JobPostingForm() {
8 const [description, setDescription] = useState("");
9
10 const handleSubmit = async (e: React.FormEvent) => {
11 e.preventDefault();
12 try {
73 const [error, setError] = useState("");
74
75 const handleSubmit = (e: React.FormEvent) => {
76 e.preventDefault();
77 if (username.trim().length < 2) {
137 };
138
139 const handleSendMessage = async (e: React.FormEvent) => {
140 e.preventDefault();
141 try {

linkInBioTemplatemain.tsx2 matches

@joker4mas•Updated 2 months ago
1/** @jsxImportSource https://esm.sh/react */
2import { renderToString } from "npm:react-dom/server";
3
4export default async function(req: Request) {
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
5// Comprehensive list of musical instruments with details

vt-discord4 file matches

@boucher•Updated 1 day ago
Starter template with client-side React & Hono server

diceRollerUI1 file match

@dcm31•Updated 1 day 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