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=863&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 9494 results for "react"(2305ms)

genuineGrayWrenmain.tsx6 matches

@stevekrouse•Updated 7 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { HTML5Backend } from "https://esm.sh/react-dnd-html5-backend@16.0.1";
3import { DndProvider, useDrag, useDrop } from "https://esm.sh/react-dnd@16.0.1";
4import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
5import React, {
6 forwardRef,
7 useCallback,
10 useRef,
11 useState,
12} from "https://esm.sh/react@18.2.0";
13
14const MODELS = ["llama3.1-8b", "llama3.1-70b"];

tldrawClientmain.tsx1 match

@maxm•Updated 7 months ago
2
3
4console.log(globalThis.React)

tldrawClientREADME.md1 match

@maxm•Updated 7 months ago
11
12Uses a pinned older version of tldraw because the other ones seem to fail on a weird dependency issue. My guess is that the val.town bundler tricks don't work so good on transitive deps, but I don't really know.
13@use-gesture/react couldn't find the right import for a call to useMemo.

DeleteExtraTextmain.tsx3 matches

@willthereader•Updated 7 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";
4// You need to remove all instances of the word New then it'll remove the date and word count so it's easier
5// to compare the actual list of title to what I got

mlbScoreFetchermain.tsx3 matches

@charmaine•Updated 7 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 App() {

oliveGardenCharmain.tsx3 matches

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

healthtech4africamain.tsx3 matches

@thomaskangah•Updated 7 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 countries = ["Kenya", "India"];

tldrawclientmain.tsx4 matches

@robcobb•Updated 7 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 **/
2// Make sure to only import from esm.sh (npm: specifier are not supported in the browser)
3
4import ReactDOM from "https://esm.sh/react-dom@18.2.0";
5import React from "https://esm.sh/react@18.2.0";
6import { Tldraw } from "https://esm.sh/tldraw@2.1.0";
7
17
18// The app will be rendered inside the root div
19const root = ReactDOM.createRoot(document.getElementById("root"));
20root.render(<App />);

spiroplotmain.tsx3 matches

@efoley•Updated 7 months ago
1/** @jsxImportSource https://esm.sh/react */
2import Chart from "https://esm.sh/chart.js/auto";
3import React, { useEffect, useRef, useState } from "https://esm.sh/react";
4import { createRoot } from "https://esm.sh/react-dom/client";
5
6const R = 120; // Set R as a constant

webcamEffectsmain.tsx4 matches

@kian•Updated 7 months ago
2 * This app creates a webcam-based image processing application with spooky effects.
3 * It requests webcam permissions, displays the video feed, and applies visual and audio effects.
4 * We use React for the UI, the browser's MediaDevices API for webcam access,
5 * and Web Audio API for continuous audio effects.
6 */
7
8/** @jsxImportSource https://esm.sh/react */
9import React, { useEffect, useRef, useState } from "https://esm.sh/react";
10import { createRoot } from "https://esm.sh/react-dom/client";
11
12function App() {

StarterPackFeeds9 file matches

@moe•Updated 6 hours ago
Hono + React + Tailwind + Farcaster Mini App Starter Project

reactHonoStarter4 file matches

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