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=629&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 9727 results for "react"(1357ms)

ChatteryGen2Flashmain.tsx3 matches

@srijanb69•Updated 2 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
3import React, { useEffect, useRef, useState } from "https://esm.sh/react@18.2.0";
4
5// Configuration

friendlyIvoryVipermain.tsx3 matches

@girlfriend•Updated 2 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
3import React, { useState } from "https://esm.sh/react@18.2.0";
4
5const NO_PHRASES = [

valentinemain.tsx3 matches

@girlfriend•Updated 2 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
3import React, { useState } from "https://esm.sh/react@18.2.0";
4
5const NO_PHRASES = [

loanCalculatorPKRmain.tsx3 matches

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

deadPixelTestmain.tsx3 matches

@wolf•Updated 2 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
3import React, { useEffect, useState } from "https://esm.sh/react@18.2.0";
4
5const RGB_COLORS = [

linkifyDiscordBotmain.tsx3 matches

@jamiedubs•Updated 2 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
3import React, { useEffect, useState } from "https://esm.sh/react@18.2.0";
4import { verify_discord_signature } from "https://esm.town/v/mattx/verify_discord_signature?v=8";
5import { registerDiscordSlashCommand } from "https://esm.town/v/neverstew/registerDiscordSlashCommand";

adroitBronzeBobolinkmain.tsx7 matches

@stevekrouse1•Updated 2 months ago
2let todos: { text: string; done: boolean }[] = [];
3
4import * as React from "npm:react";
5import { renderToString } from "npm:react-dom/server";
6
7function TodoList({ todos }: { todos: typeof todos }) {
13 }}
14 />
15 <script src="https://unpkg.com/react@17/umd/react.development.js" />
16 <script src="https://unpkg.com/react-dom@17/umd/react-dom.development.js" />
17 <script src="https://unpkg.com/babel-standalone@6/babel.min.js" />
18 <style
31 __html: `
32 function TodoApp() {
33 const [input, setInput] = React.useState('');
34 const todos = window.todos;
35
67 }
68
69 ReactDOM.render(<TodoApp />, document.getElementById('root'));
70 `,
71 }}
75}
76
77function Html({ children }: { children: React.ReactNode }) {
78 return (
79 <html>

uprightGreenLeoponREADME.md1 match

@cufaoil•Updated 2 months ago
6
7Versions 0-17 of this val were done with Hono and server-rendering.
8Versions 18+ were generated with Townie and use client-side React.
9
10To use this val, fork it to your account.

uprightGreenLeoponmain.tsx5 matches

@cufaoil•Updated 2 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { Hono } from "https://esm.sh/hono";
3import { debounce } from "https://esm.sh/lodash-es";
4import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
5import { useDropzone } from "https://esm.sh/react-dropzone?deps=react@18.2.0,react-dom@18.2.0";
6import React, { ReactNode, useCallback, useEffect, useRef, useState } from "https://esm.sh/react@18.2.0";
7import { lastlogin } from "https://esm.town/v/stevekrouse/lastlogin_safe";
8import { LoginWithGoogleButton } from "https://esm.town/v/stevekrouse/LoginWithGoogleButton";
9
10interface TooltipProps {
11 children: ReactNode;
12 content: string;
13}

independentApricotDingomain.tsx3 matches

@MadScientistX•Updated 2 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
3import React, { useState } from "https://esm.sh/react@18.2.0";
4
5const NO_PHRASES = [

StarterPackFeeds10 file matches

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

reactHonoStarter4 file matches

@deboneil07•Updated 13 hours 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