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=1083&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 11940 results for "react"(1542ms)

blob_adminREADME.md1 match

@steveVT•Updated 6 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.

blob_adminmain.tsx5 matches

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

LegoIWantmain.tsx3 matches

@opeala•Updated 6 months ago
1/** @jsxImportSource https://esm.sh/react */
2// import { faCoffee } from "npm:@fortawesome/free-solid-svg-icons";
3import {
9 faXTwitter,
10} from "npm:@fortawesome/free-brands-svg-icons";
11import { FontAwesomeIcon } from "npm:@fortawesome/react-fontawesome";
12import { renderToString } from "npm:react-dom/server";
13
14export default async function(req: Request) {

ddg_chatmain.tsx8 matches

@kauri•Updated 6 months ago
1/** @jsxImportSource https://esm.sh/react */
2import React, { useState, useEffect, useRef } from "https://esm.sh/react";
3import { createRoot } from "https://esm.sh/react-dom/client";
4import ReactMarkdown from "https://esm.sh/react-markdown@9.0.1";
5import remarkGfm from "https://esm.sh/remark-gfm@4.0.0";
6import { Prism as SyntaxHighlighter } from "https://esm.sh/react-syntax-highlighter@15.5.0";
7import { oneDark } from "https://esm.sh/react-syntax-highlighter@15.5.0/dist/esm/styles/prism";
8
9const CHAT_URL = "/api/chat";
27 return (
28 <div style={role === 'user' ? styles.userMessage : styles.assistantMessage}>
29 <ReactMarkdown
30 remarkPlugins={[remarkGfm]}
31 components={{
73 >
74 {content}
75 </ReactMarkdown>
76 </div>
77 );

killamixmain.tsx3 matches

@all•Updated 6 months ago
1/** @jsxImportSource https://esm.sh/react */
2import React, { useState, useEffect, useCallback, useRef } from "https://esm.sh/react";
3import { createRoot } from "https://esm.sh/react-dom/client";
4
5// Text prompt mappings for encoders

brooklynWeatherFetchermain.tsx3 matches

@jjoak3•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 WeatherApp() {

deftScarletKangaroomain.tsx2 matches

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

dns_record_debuggermain.tsx4 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() {
7 const [content, setContent] = useState("");
8
9 const handleSubmit = async (e: React.FormEvent) => {
10 e.preventDefault();
11 const response = await fetch(`/proxy?url=${encodeURIComponent(url)}`);

weatherDashboardmain.tsx3 matches

@vladocar•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 WeatherDashboard() {

reflectiveBrownCowmain.tsx3 matches

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

reactHonoStarter4 file matches

@lightweight•Updated 5 hours ago

MiniAppStarter9 file matches

@moe•Updated 1 day ago
Hono + React + Tailwind + Farcaster Mini App Starter Project
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