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/image-url.jpg?q=react&page=1206&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 15826 results for "react"(5242ms)

capitalMultipliersmain.tsx9 matches

@vinaybjp12•Updated 2 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import * as React from "https://esm.sh/react@18.2.0";
3import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
4
5function WhatsAppButton() {
28
29function WelcomePopup({ onClose }) {
30 const [headlines, setHeadlines] = React.useState([
31 "35 Years of Proven Financial Expertise",
32 "Trusted Advisory Since 1989",
34 ]);
35
36 React.useEffect(() => {
37 async function generateHeadlines() {
38 try {
102
103function App() {
104 const [showWelcomePopup, setShowWelcomePopup] = React.useState(true);
105
106 const handleWelcomePopupClose = () => {
552 <script src="https://esm.town/v/std/catch"></script>
553 <script type="module">
554 import React from 'https://esm.sh/react@18.2.0';
555 import { createRoot } from 'https://esm.sh/react-dom@18.2.0/client';
556 import { App } from '${import.meta.url}';
557 createRoot(document.getElementById('root')).render(React.createElement(App));
558 </script>
559 </body>

Happyjourneymain.tsx18 matches

@Happy_journey•Updated 2 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React 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@9.1.2";
5
11### Development Environment
12- Install Node.js (v16+ recommended)
13- Install React Native CLI
14- Install Android Studio
15- Install Xcode (for iOS development)
17### Required Global Installations
18\`\`\`bash
19npm install -g react-native-cli
20npm install -g @react-native-community/cli
21\`\`\`
22
24
25\`\`\`bash
26# Create new React Native project
27npx react-native init HappyJourneyAutoTravels
28
29# Navigate to project directory
35\`\`\`bash
36# Core Dependencies
37npm install @react-native-community/geolocation
38npm install react-native-maps
39npm install @react-native-picker/picker
40npm install @react-native-firebase/app
41npm install @react-native-firebase/messaging
42npm install react-native-callkeep
43
44# Peer Dependencies
45npm install react-native-permissions
46npm install react-native-safe-area-context
47\`\`\`
48
62dependencies {
63 // Firebase Dependencies
64 implementation project(':@react-native-firebase_app')
65 implementation project(':@react-native-firebase_messaging')
66}
67\`\`\`

deftBrownMinnowmain.tsx15 matches

@Happy_journey•Updated 2 months ago
6### Development Environment
7- Install Node.js (v16+ recommended)
8- Install React Native CLI
9- Install Android Studio
10- Install Xcode (for iOS development)
12### Required Global Installations
13\`\`\`bash
14npm install -g react-native-cli
15npm install -g @react-native-community/cli
16\`\`\`
17
19
20\`\`\`bash
21# Create new React Native project
22npx react-native init HappyJourneyAutoTravels
23
24# Navigate to project directory
30\`\`\`bash
31# Core Dependencies
32npm install @react-native-community/geolocation
33npm install react-native-maps
34npm install @react-native-picker/picker
35npm install @react-native-firebase/app
36npm install @react-native-firebase/messaging
37npm install react-native-callkeep
38
39# Peer Dependencies
40npm install react-native-permissions
41npm install react-native-safe-area-context
42\`\`\`
43
57dependencies {
58 // Firebase Dependencies
59 implementation project(':@react-native-firebase_app')
60 implementation project(':@react-native-firebase_messaging')
61}
62\`\`\`

timelessMaroonMartenmain.tsx3 matches

@jane555•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 = [

ValueAwardmain.tsx3 matches

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

prominentPlumNewtmain.tsx2 matches

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

cerebras_coderindex10 matches

@Armanitown•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?deps=react@18.2.0";
3import { Prism as SyntaxHighlighter } from "https://esm.sh/react-syntax-highlighter?deps=react@18.2.0,react-dom@18.2.0";
4import React, { useEffect, useState } from "https://esm.sh/react@18.2.0";
5import STARTER_PROMPTS from "./starter-prompts.js";
6
30}: {
31 prompt: string;
32 setPrompt: React.Dispatch<React.SetStateAction<string>>;
33 handleSubmit: (e: React.FormEvent) => void;
34 handleStarterPromptClick: (promptItem: PromptItem) => void;
35}) {
116
117function App() {
118 const previewRef = React.useRef<HTMLDivElement>(null);
119 const [prompt, setPrompt] = useState("");
120 const [projectId, setProjectId] = useState<number | null>(null);
174 }
175
176 async function handleSubmit(e: React.FormEvent | string) {
177 if (typeof e !== "string") {
178 e.preventDefault();
673 </div>
674 <div className="bg-white w-full h-full flex flex-col grow rounded-xl border-2 border-white overflow-hidden">
675 <React.Fragment key={iframeKey}>
676 <iframe
677 srcDoc={code}
679 className="w-full grow"
680 />
681 </React.Fragment>
682 </div>
683 </div>

stevekrouse_dot_comproposal.tsx2 matches

@aginfer08•Updated 2 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { renderToString } from "npm:react-dom@18.2.0/server";
3import { Link } from "../helpers.tsx";
4

stevekrouse_dot_comindex.tsx2 matches

@aginfer08•Updated 2 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { renderToString } from "https://esm.sh/react-dom@18.2.0/server";
3import { email } from "https://esm.town/v/std/email?v=11";
4import { Homepage } from "./homepage.tsx";

stevekrouse_dot_comhomepage.tsx2 matches

@aginfer08•Updated 2 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { renderToString } from "npm:react-dom@18.2.0/server";
3import { getHits } from "./analytics.ts";
4import { Link } from "./helpers.tsx";

react-router-starter3 file matches

@nbbaier•Updated 1 hour ago

MiniAppStarter10 file matches

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