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/$%7Bart_info.art.src%7D?q=react&page=1075&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 11750 results for "react"(1579ms)

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) {

neighborhoodOrderAppmain.tsx3 matches

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

falDemoAppmain.tsx4 matches

@d0ccc•Updated 6 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);

valcoinDashboardmain.tsx6 matches

@aggy•Updated 6 months ago
1/** @jsxImportSource https://esm.sh/react */
2import { renderToString } from "https://esm.sh/react-dom@18.2.0/server";
3import React, { useEffect, useState } from "https://esm.sh/react@18.2.0";
4
5const API_URL = "https://aggy-valcoinapi.web.val.run";
196 <div id="root">${appHtml}</div>
197 <script type="module">
198 import React from 'https://esm.sh/react@18.2.0';
199 import { createRoot } from 'https://esm.sh/react-dom@18.2.0/client';
200 import { App } from '${import.meta.url}';
201
202 createRoot(document.getElementById('root')).render(React.createElement(App));
203 </script>
204 </body>

multilingualchatroommain.tsx3 matches

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

solanaPayDemomain.tsx3 matches

@vawogbemi•Updated 6 months ago
1/** @jsxImportSource https://esm.sh/react */
2import {
3 createQR,
16} from "https://esm.sh/@solana/web3.js?bundle-deps";
17import BigNumber from "https://esm.sh/bignumber.js";
18import React, { useEffect, useRef, useState } from "https://esm.sh/react";
19import { createRoot } from "https://esm.sh/react-dom/client";
20
21function Home() {

multilingualchatroommain.tsx3 matches

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

MoonCatWalkmain.tsx3 matches

@midnightlightning•Updated 6 months ago
1/** @jsxImportSource https://esm.sh/react */
2import React, { useCallback, useEffect, useRef, useState } from "https://esm.sh/react";
3import { createRoot } from "https://esm.sh/react-dom/client";
4
5const SPEED = 6; // pixels per step

reactHonoStarter4 file matches

@jessicagarson•Updated 10 hours ago

reactHonoStarter_remix_665424 file matches

@johnroyall•Updated 16 hours ago
Starter template with client-side React & Hono server
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