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=434&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 4495 results for "react"(2229ms)

randoDiscmain.tsx5 matches

@stevekrouse•Updated 4 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { AnimatePresence, motion } from "https://esm.sh/framer-motion?deps=react@18.2.0,react-dom@18.2.0";
3import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
4import React, { useCallback, useEffect, useState } from "https://esm.sh/react@18.2.0";
5
6console.log(AnimatePresence);
317}
318
319class ErrorBoundary extends React.Component {
320 constructor(props) {
321 super(props);

emilrdlemain.tsx3 matches

@stevekrouse•Updated 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;

visionaryPeachAspmain.tsx3 matches

@stevekrouse•Updated 4 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 KEY = "socialDataProxy";

spectacularAzureAngelfishmain.tsx3 matches

@stevekrouse•Updated 4 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";
4import { Chart, registerables } from "https://esm.sh/chart.js";
5Chart.register(...registerables);

LotecaV2main.tsx3 matches

@maxm•Updated 4 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";
4import { MEUS_JOGOS } from "https://esm.town/v/vacav/myConsts";
5

firehosemain.tsx4 matches

@stevekrouse•Updated 5 months ago
1/** @jsxImportSource https://esm.sh/react */
2import { AtpAgent } from "https://esm.sh/@atproto/api@0.13.15";
3import { AnimatePresence, motion } from "https://esm.sh/framer-motion";
4import React, { useEffect, useMemo, useRef, useState } from "https://esm.sh/react";
5import { createRoot } from "https://esm.sh/react-dom/client";
6import { TagCloud } from "https://esm.sh/react-tagcloud@2.2.0";
7
8const service = "https://public.api.bsky.app";

dns_record_debuggermain.tsx4 matches

@stevekrouse•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
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)}`);

yc_findermain.tsx5 matches

@stevekrouse•Updated 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);

passionateScarletPrawnmain.tsx3 matches

@stevekrouse•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
5function App() {

laudableFuchsiaMastodonmain.tsx4 matches

@stevekrouse•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
5function App() {
10 const [imageUrl, setImageUrl] = useState("");
11
12 const handleSubmit = async (e: React.FormEvent) => {
13 e.preventDefault();
14 setIsLoading(true);

react-router-starter-remix-13 file matches

@jxnblk•Updated 1 day ago

reactHonoStarter4 file matches

@stfnsr•Updated 2 days ago