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/$%7Burl%7D?q=react&page=1088&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 11887 results for "react"(2502ms)

animalInfoIngpracticalBlushAlbatrossmain.tsx3 matches

@junhoca•Updated 6 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
5function StarRating({ rating, onRate }) {

stripeCasualCheckoutDemomain.tsx3 matches

@vawogbemi•Updated 6 months ago
1/** @jsxImportSource https://esm.sh/react */
2import React, { useState } from "https://esm.sh/react";
3import { createRoot } from "https://esm.sh/react-dom/client";
4import Stripe from "https://esm.sh/stripe";
5

passwordGenmain.tsx3 matches

@all•Updated 6 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 6 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 6 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 6 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 6 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 6 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 6 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 6 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) {

MiniAppStarter9 file matches

@moe•Updated 1 day ago
Hono + React + Tailwind + Farcaster Mini App Starter Project

reactHonoStarter4 file matches

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