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%20%22Optional%20title%22?q=react&page=138&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 11382 results for "react"(872ms)

dddSearchBar.tsx4 matches

@Dhanu•Updated 5 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState } from "https://esm.sh/react@18.2.0";
3import type { SearchHistoryItem } from "../../shared/types.ts";
4
9}
10
11const SearchBar: React.FC<SearchBarProps> = ({ onSearch, recentSearches, onClearHistory }) => {
12 const [searchTerm, setSearchTerm] = useState<string>("");
13 const [showHistory, setShowHistory] = useState<boolean>(false);
14
15 const handleSubmit = (e: React.FormEvent) => {
16 e.preventDefault();
17 if (searchTerm.trim()) {

dddApp.tsx3 matches

@Dhanu•Updated 5 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState, useEffect } from "https://esm.sh/react@18.2.0";
3import type { WeatherData, SearchHistoryItem } from "../../shared/types.ts";
4import SearchBar from "./SearchBar.tsx";
10}
11
12const App: React.FC<AppProps> = ({ initialSearches }) => {
13 const [weatherData, setWeatherData] = useState<WeatherData | null>(null);
14 const [loading, setLoading] = useState<boolean>(false);

dddindex.tsx5 matches

@Dhanu•Updated 5 days 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 App from "./components/App.tsx";
5
16
17createRoot(document.getElementById("root")!).render(
18 <React.StrictMode>
19 <App initialSearches={initialData.recentSearches} />
20 </React.StrictMode>
21);

untitled-4689openai.ts1 match

@peteabu•Updated 5 days ago
34
35 Format the script with clear speaker labels (Host A: and Host B:) and include natural conversational elements
36 like questions, reactions, and brief discussions. Make it sound like a real conversation, not just taking turns
37 reading facts. Keep the total length to about 5-7 minutes of speaking time.`
38 },

TownieuseUser.tsx1 match

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

TownieuseUsageStats.ts1 match

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

TownieuseScrollToBottom.tsx1 match

@th3nolo•Updated 5 days ago
1import { useEffect, useRef } from 'https://esm.sh/react@18.2.0?dev';
2
3

TownieuseProject.tsx1 match

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

TownieuseProjects.tsx1 match

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

TownieuseLoadingFavicon.ts1 match

@th3nolo•Updated 5 days ago
1import { useEffect } from "react";
2
3function setLoadingFavicon() {

a_new_website4 file matches

@wolf•Updated 1 hour ago
Starter template with client-side React & Hono server

StarterPackFeeds12 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