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/$%7Bsuccess?q=react&page=844&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 9343 results for "react"(3217ms)

TodoAppmain.tsx3 matches

@mrt•Updated 6 months ago
1/** @jsxImportSource https://esm.sh/react */
2import { zip } from "https://esm.sh/lodash-es";
3import { useEffect, useState } from "https://esm.sh/react@18.2.0";
4import codeOnValTown from "https://esm.town/v/andreterron/codeOnValTown?v=46";
5import { Form, hydrate } from "https://esm.town/v/stevekrouse/ssr_react_mini?v=75";
6
7export async function loader(req: Request) {

dailyScheduleTrackerREADME.md2 matches

@mrt•Updated 6 months ago
1# Daily Schedule & Chores Tracker
2A flexible and interactive analogue clock schedule and chore tracker designed for my 8-year-old. This React component helps manage daily routines and tasks, featuring a visually appealing clock interface and a dynamic chore list.
3
4## Features
11
12## Installation
13To use the component, include it in your React project and provide the necessary props.
14```ts
15import AnalogueScheduleClock from './path-to-component';

dailyScheduleTrackermain.tsx7 matches

@mrt•Updated 6 months ago
1/** @jsxImportSource https://esm.sh/react */
2import React, { useEffect, useMemo, useState } from "https://esm.sh/react";
3import { createRoot } from "https://esm.sh/react-dom/client";
4
5interface ScheduleItem {
63};
64
65const ScheduleSegment: React.FC<{
66 startMinutes: number;
67 endMinutes: number;
90};
91
92const ClockHand: React.FC<{ angle: number; length: number; width: number; color: string }> = (
93 { angle, length, width, color },
94) => (
115};
116
117const Legend: React.FC<{ schedule: ScheduleItem[]; currentTime: Date; heading: string }> = (
118 { schedule, currentTime, heading },
119) => {
150};
151
152const TodoList: React.FC<{ todos: TaskItem[]; heading: string }> = ({ todos, heading }) => {
153 const [todoItems, setTodoItems] = useState(todos);
154

instantdbCursorsDemomain.tsx4 matches

@vawogbemi•Updated 6 months ago
1/** @jsxImportSource https://esm.sh/react */
2import { Cursors, init } from "https://esm.sh/@instantdb/react?bundle-deps";
3import React, { JSX } from "https://esm.sh/react";
4import { createRoot } from "https://esm.sh/react-dom/client";
5
6const cursorsClassNames =

instantCursorsDemomain.tsx4 matches

@vawogbemi•Updated 6 months ago
1/** @jsxImportSource https://esm.sh/react */
2import { Cursors, init } from "https://esm.sh/@instantdb/react";
3import React from "https://esm.sh/react";
4import { createRoot } from "https://esm.sh/react-dom/client";
5
6function InstantCursors() {

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

IClickWolf4 file matches

@vtTestLocal•Updated 2 days ago
Starter template with client-side React & Hono server

vt-discord4 file matches

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