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/%22https:/unpkg.com/three@0.160.0/build/three.min.js//%22/inference?q=react&page=1&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 21713 results for "react"(2017ms)

campanhapsdalcoframain.ts5 matches

@nmsilva•Updated 1 hour 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";
4
5import {
13 TbSend as Send,
14 TbUsers as Users,
15} from "https://esm.sh/react-icons/tb";
16
17const CampaignLanding = () => {
308 <div className="flex justify-center mb-6">
309 <div className="w-16 h-16 sm:w-20 sm:h-20 bg-gradient-to-br from-orange-100 to-yellow-100 rounded-full flex items-center justify-center text-orange-500 group-hover:scale-110 transition-transform duration-300 shadow-md">
310 {React.cloneElement(area.icon, {
311 className: "w-8 h-8 sm:w-10 sm:h-10",
312 })}

manifoldHttpmain.ts4 matches

@dcm31•Updated 2 hours 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
5function App() {
20 }
21
22 async function handleSubmit(e: React.FormEvent) {
23 e.preventDefault();
24 setResult(null);

gatemain.ts3 matches

@know•Updated 2 hours ago
392
393 <script type="text/jsx">
394 import React, { useState, useEffect } from 'https://esm.sh/react@18.3.1';
395 import ReactDOM from 'https://esm.sh/react-dom@18.3.1';
396
397 const sourceUrl = "${sourceUrl}";
540 }
541
542 ReactDOM.render(<App />, document.querySelector('main .container'));
543 </script>
544</body>

h6-ValTownLogo.tsx1 match

@werewolf006•Updated 3 hours ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2
3export function ValTownLogo () {

h6-useUser.tsx1 match

@werewolf006•Updated 3 hours ago
1import { useState, useEffect } from "react";
2
3const USER_ENDPOINT = "/api/user";

h6-useUsageStats.ts1 match

@werewolf006•Updated 3 hours ago
1import { useEffect } from "react";
2
3export function useUsageStats(messages: any[], usages: any[]) {

h6-useScrollToBottom.tsx1 match

@werewolf006•Updated 3 hours ago
1import { useEffect, useRef } from 'https://esm.sh/react@18.2.0';
2
3

h6-useProject.tsx1 match

@werewolf006•Updated 3 hours ago
1import { useState, useEffect } from "react";
2
3const PROJECT_ENDPOINT = "/api/project";

h6-useProjects.tsx1 match

@werewolf006•Updated 3 hours ago
1import { useState, useEffect } from "react";
2
3const ENDPOINT = "/api/projects-loader";

h6-useLoadingFavicon.ts1 match

@werewolf006•Updated 3 hours ago
1import { useEffect } from "react";
2
3function setLoadingFavicon() {

glimpse2-runbook-view-glimpse-save-login-react19 file matches

@lightweight•Updated 9 hours ago

wa-hono-react4 file matches

@nbbaier•Updated 1 day ago
react
franky47
Freelance software engineer, open-sourcerer, speaker. Building `nuqs`, a type-safe search params state manager for React.