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=800&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 8979 results for "react"(1358ms)

passwordGenmain.tsx3 matches

@all•Updated 5 months ago
1/** @jsxImportSource https://esm.sh/react */
2import confetti from "https://esm.sh/canvas-confetti@1.6.0";
3import React, { useEffect, useState } from "https://esm.sh/react";
4import { createRoot } from "https://esm.sh/react-dom/client";
5
6function AlbertiCipherDisk({ outerRotation, innerRotation, onRotate }) {

htmlToMarkdownConvertermain.tsx3 matches

@willow•Updated 5 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 TurndownService from "https://esm.sh/turndown";
5

xmasRedHamstermain.tsx2 matches

@trollishka•Updated 5 months ago
42
43 if (data.items && data.items.length > 0) {
44 // Sort pins by reaction count (as a measure of popularity)
45 const sortedPins = data.items.sort((a, b) => (b.reaction_counts?.like || 0) - (a.reaction_counts?.like || 0));
46 const mostPopularPin = sortedPins[0];
47

xmasRedHamstermain.tsx2 matches

@stevekrouse•Updated 5 months ago
42
43 if (data.items && data.items.length > 0) {
44 // Sort pins by reaction count (as a measure of popularity)
45 const sortedPins = data.items.sort((a, b) => (b.reaction_counts?.like || 0) - (a.reaction_counts?.like || 0));
46 const mostPopularPin = sortedPins[0];
47

tokencountermain.tsx3 matches

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

multilingualchatroommain.tsx3 matches

@daisuke•Updated 5 months ago
1/** @jsxImportSource https://esm.sh/react */
2import { nanoid } from "https://esm.sh/nanoid";
3import React, { useCallback, useEffect, useState } from "https://esm.sh/react";
4import { createRoot } from "https://esm.sh/react-dom/client";
5
6const languages = [

weatherDashboardmain.tsx3 matches

@oioioi•Updated 5 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";
4
5const API_BASE_URL = "https://api.open-meteo.com/v1/forecast";

generateframeImagemain.tsx3 matches

@stevekrouse•Updated 5 months ago
1/** @jsxImportSource https://esm.sh/react */
2import React from "https://esm.sh/react";
3import { renderToString } from "https://esm.sh/react-dom/server";
4
5async function getWeather(latitude: number, longitude: number) {

neighborhoodOrderAppmain.tsx3 matches

@zlpkhr•Updated 5 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 Cookies from "https://esm.sh/js-cookie";
5

falDemoAppmain.tsx4 matches

@d0ccc•Updated 5 months ago
1/** @jsxImportSource https://esm.sh/react */
2import { createFalClient } from "https://esm.sh/@fal-ai/client";
3import React, { useState } from "https://esm.sh/react";
4import { createRoot } from "https://esm.sh/react-dom/client";
5import { falProxyRequest } from "https://esm.town/v/stevekrouse/falProxyRequest";
6
11 const [numImages, setNumImages] = useState(1);
12
13 const generateImage = async (e?: React.FormEvent) => {
14 e?.preventDefault();
15 setLoading(true);

vt-discord4 file matches

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

diceRollerUI1 file match

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