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/%22$%7Bconfig.siteUrl%7D/admin.http/%22$%7Bad.imageUrl%7D//%22/frontend/index.tsx/%22?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 21714 results for "react"(7056ms)

basic-html-starterREADME.md1 match

@nuestudioUpdated 1 hour ago
34
35If you want more interactivity, check out this
36[React starter](https://www.val.town/x/std/reactHonoStarter).
37
38### ← favicon.svg

campanhapsdalcoframain.ts5 matches

@nmsilvaUpdated 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
17
307 <div className="flex justify-center mb-6">
308 <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">
309 {React.cloneElement(area.icon, {
310 className: "w-8 h-8 sm:w-10 sm:h-10",
311 })}

manifoldHttpmain.ts4 matches

@dcm31Updated 4 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

@knowUpdated 4 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

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

h6-useUser.tsx1 match

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

h6-useUsageStats.ts1 match

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

h6-useScrollToBottom.tsx1 match

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

h6-useProject.tsx1 match

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

h6-useProjects.tsx1 match

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

wa-hono-react4 file matches

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