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=805&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 8946 results for "react"(949ms)

instantdbReactionsExamplemain.tsx5 matches

@vawogbemi•Updated 6 months ago
1/** @jsxImportSource https://esm.sh/react */
2import { init } from "https://esm.sh/@instantdb/react";
3import React, { createRef, useRef } from "https://esm.sh/react";
4import { createRoot } from "https://esm.sh/react-dom/client";
5
6type EmojiName = keyof typeof emoji;
103
104 const elRefsRef = useRef<{
105 [k: string]: React.RefObject<HTMLDivElement>;
106 }>(refsInit);
107

simpletypemain.tsx3 matches

@dantaloupe•Updated 6 months ago
1/** @jsxImportSource https://esm.sh/react */
2import React, { useState, useEffect, useCallback } from "https://esm.sh/react";
3import { createRoot } from "https://esm.sh/react-dom/client";
4
5const symbols = "!@#$%^&*()_+-=[]{}|;:,.<>?`~";

svaltownmain.tsx5 matches

@vprtwn•Updated 6 months ago
1/** @jsxImportSource https://esm.sh/react */
2import React, { useEffect, useRef, useState } from "https://esm.sh/react";
3import { createRoot } from "https://esm.sh/react-dom/client";
4
5interface WordEntry {
126 };
127
128 const handleInput = (e: React.ChangeEvent<HTMLInputElement>) => {
129 const input = e.target.value;
130 const now = Date.now();
174 };
175
176 const handleKeyDown = (e: React.KeyboardEvent<HTMLInputElement>) => {
177 if (e.key === "Tab") {
178 e.preventDefault();

startup_clickermain.tsx3 matches

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

flutteringVioletBirdmain.tsx3 matches

@stevekrouse•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";
4
5function App() {

flutteringVioletBirdREADME.md2 matches

@stevekrouse•Updated 6 months ago
13
141. Vanilla client-side JavaScript: @stevekrouse/cron_client_side_script_fork
152. Client-side ReactJS (no SSR): @stevekrouse/cron_client_react_fork
16
17I think (2) Client-side React without any SSR is the simplest architecture. Maybe will move to that.
18
19Migrated from folder: Archive/flutteringVioletBird

timeCalculatormain.tsx3 matches

@mikaello•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 TimeInput({ value, onChange, placeholder }) {

whackaghostmain.tsx3 matches

@Ttt•Updated 6 months ago
30 */
31
32/** @jsxImportSource https://esm.sh/react */
33import confetti from "https://esm.sh/canvas-confetti@1.6.0";
34import React, { useCallback, useEffect, useState } from "https://esm.sh/react";
35import { createRoot } from "https://esm.sh/react-dom/client";
36
37const GRID_SIZES = [4, 5, 6, 7]; // Grid sizes for each level

dateme_react_hydratedmain.tsx3 matches

@jacobhthomas•Updated 6 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { renderToString } from "https://esm.sh/react-dom@18.2.0/server";
3import {
4 createStaticHandler,
5 createStaticRouter,
6 StaticRouterProvider,
7} from "https://esm.sh/react-router-dom@6.23.0/server?deps=react@18.2.0";
8import { sqlite } from "https://esm.town/v/std/sqlite?v=6";
9import { routes } from "https://esm.town/v/stevekrouse/dateme_routes";

runescapeWoodCuttingmain.tsx3 matches

@charmaine•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 ACTIONS = {

vt-discord4 file matches

@boucher•Updated 2 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