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=798&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 9025 results for "react"(1430ms)

insightfulSalmonRabbitmain.tsx4 matches

@ubixsnow•Updated 5 months ago
1/** @jsxImportSource https://esm.sh/react */
2import React, { useEffect, useState } from "https://esm.sh/react";
3import { createRoot } from "https://esm.sh/react-dom/client";
4
5function App() {
39 }, [isDarkMode]);
40
41 const handleSubmit = async (e: React.FormEvent) => {
42 e.preventDefault();
43 setIsLoading(true);

guantanameramain.tsx2 matches

@Transmachin•Updated 5 months ago
1/** @jsxImportSource https://esm.sh/react **/
2import { renderToString } from "https://esm.sh/react-dom@18/server";
3
4export default (req: Request) => {

ModuloCreazioneIntimitamain.tsx3 matches

@cicciocappa•Updated 5 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
5// Define question types

exceptionalBlueBearmain.tsx2 matches

@Ruvi123•Updated 5 months ago
1/** @jsxImportSource https://esm.sh/react **/
2import { renderToString } from "https://esm.sh/react-dom@18/server";
3
4export default (req: Request) => {

Family100main.tsx5 matches

@nirwan•Updated 5 months ago
1/** @jsxImportSource https://esm.sh/react */
2import React from "https://esm.sh/react";
3import ReactDOM from "https://esm.sh/react-dom";
4import { createRoot } from "https://esm.sh/react-dom/client";
5
6const { useState, useRef, useEffect } = React;
7
8function compressImage(file, maxWidth = 800, maxHeight = 800, quality = 0.7) {

portfolioSitemain.tsx5 matches

@shegosthato•Updated 5 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
5// Custom Icons
116 const baseStyles = 'px-4 py-2 rounded-md transition-colors flex items-center justify-center';
117
118 if (asChild && React.isValidElement(children)) {
119 return React.cloneElement(children, {
120 className: `${baseStyles} ${variantStyles[variant]} ${className} ${children.props.className}`
121 });

cerebras_codermain.tsx6 matches

@franklyc•Updated 5 months ago
1/** @jsxImportSource https://esm.sh/react */
2import Cerebras from "https://esm.sh/@cerebras/cerebras_cloud_sdk";
3import React, { useState } from "https://esm.sh/react";
4import { createRoot } from "https://esm.sh/react-dom/client";
5import { Prism as SyntaxHighlighter } from "https://esm.sh/react-syntax-highlighter";
6import { tomorrow } from "https://esm.sh/react-syntax-highlighter/dist/esm/styles/prism";
7
8function App() {
18 >(null);
19
20 async function handleSubmit(e: React.FormEvent) {
21 e.preventDefault();
22 setLoading(true);

effortlessAquamarineHookwormmain.tsx3 matches

@nsafouane•Updated 5 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 ThemeToggle({ isDarkMode, toggleTheme }) {

multilingualchatroommain.tsx3 matches

@lloydpearsoniv•Updated 5 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 = [

expositionAgencyPagemain.tsx3 matches

@bladesquad•Updated 5 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
5// Comprehensive Validation Utility

vt-discord4 file matches

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