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=415&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 4213 results for "react"(725ms)

1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React from "https://esm.sh/react@18.2.0";
3
4interface LogoProps {
7}
8
9const Logo: React.FC<LogoProps> = ({ width = 945 / 3, height = 100 / 3 }) => (
10 <svg width={width} height={height} viewBox="0 0 945 100" xmlns="http://www.w3.org/2000/svg">
11 <path

stripeWebsocketDemostripeTrigger1 match

@wolfUpdated 3 months ago
1/** @jsxImportSource https://esm.sh/react */
2import Stripe from "npm:stripe@14.8.0";
3
1/** @jsxImportSource https://esm.sh/react */
2import { micromark } from "https://esm.sh/micromark@3";
3import { email } from "https://esm.town/v/std/email?v=11";
4import { discordWebhook } from "https://esm.town/v/stevekrouse/discordWebhook";
5import { html } from "https://esm.town/v/stevekrouse/html";
6import { renderToString } from "npm:react-dom/server";
7import Stripe from "npm:stripe";
8

valreadmegeneratormain.tsx3 matches

@prashamtrivediUpdated 4 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { ValTown } from "https://esm.sh/@valtown/sdk";
3import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
4import React, { useRef, useState, useEffect } from "https://esm.sh/react@18.2.0";
5
6function App() {

valreadmegeneratorREADME.md3 matches

@prashamtrivediUpdated 4 months ago
11
12- **Responsive Layout: 📱🖥️**
13 - Built with a beautiful and modern UI using React and TailwindCSS, ensuring a pleasant experience across devices.
14
15- **Live Preview and Copy: 📋**
38## Technologies Used
39
40- **React:** For building the interactive user interface.
41- **React DOM:** To render components efficiently.
42- **TailwindCSS:** For styling the application.
43- **Deno:** The server-side environment.

emilrdlemain.tsx3 matches

@stevekrouseUpdated 4 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
5const WORD_LENGTH = 5;

yc_findermain.tsx5 matches

@stevekrouseUpdated 5 months ago
1/** @jsxImportSource https://esm.sh/react */
2import { csvParse } from "https://esm.sh/d3-dsv@3.0.1";
3import React, { useEffect, useState } from "https://esm.sh/react";
4import { createRoot } from "https://esm.sh/react-dom/client";
5
6interface YCCompany {
81 }, []);
82
83 const handleFileUpload = (event: React.ChangeEvent<HTMLInputElement>) => {
84 const file = event.target.files?.[0];
85 if (file) {
96 };
97
98 const handleSubmit = (event: React.FormEvent) => {
99 event.preventDefault();
100 setIsLoading(true);

reactHonoStarter4 file matches

@stfnsrUpdated 1 day ago

myNewWebsite4 file matches

@billogiovanniUpdated 1 day ago
Starter template with client-side React & Hono server