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/$%7Burl%7D?q=react&page=135&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 16324 results for "react"(5016ms)

TownieApp.tsx4 matches

@lengshak•Updated 5 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0?dev */
2import React, { createContext, useState } from "react";
3import { BrowserRouter, Link, Navigate, Outlet, Route, Routes, useLocation } from "react-router";
4import { useLocalStorage } from "react-use";
5import { useUser } from "../hooks/useUser.tsx";
6import { ChatRouteSingleColumn } from "./ChatRouteSingleColumn.tsx";

FootballREADME.md2 matches

@Brian250•Updated 5 days ago
1# Frontend
2
3React-based frontend for the Football Live Scores app.
4
5## Components
38## State Management
39
40- React hooks (useState, useEffect)
41- Auto-refresh logic for live matches
42- Error handling and loading states

Footballindex.tsx2 matches

@Brian250•Updated 5 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2
3import { createRoot } from "https://esm.sh/react-dom@18.2.0/client?deps=react@18.2.0";
4import App from "./components/App.tsx";
5

kawtarnew-file-8446.tsx2 matches

@kooki•Updated 5 days ago
1/** @jsxImportSource https://esm.sh/react */
2import { renderToString } from "npm:react-dom/server";
3
4export default async function(req: Request) {

FootballMatchCard.tsx1 match

@Brian250•Updated 5 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2
3import type { Match } from "../../shared/types.ts";

FootballLoadingSpinner.tsx1 match

@Brian250•Updated 5 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2
3interface LoadingSpinnerProps {

AAbblogLayout.tsx3 matches

@AichaAb•Updated 5 days ago
1/** @jsxImportSource npm:react@18.2.0 */
2import type { ReactNode } from "npm:react@18.2.0";
3
4export function Layout({ children }: { children: ReactNode }) {
5 return (
6 <html lang="en">

AAbblogindex.tsx4 matches

@AichaAb•Updated 5 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import Markdown from "https://esm.sh/react-markdown@9?deps=react@18.2.0";
3import { listFiles, readFile } from "https://esm.town/v/std/utils@85-main/index.ts";
4import { renderToString } from "npm:react-dom@18.2.0/server";
5import { Layout } from "./Layout.tsx";
6
44}
45
46function html(children: React.ReactNode) {
47 return new Response(
48 renderToString(

kooki2new-file-8446.tsx2 matches

@kooki•Updated 5 days ago
1/** @jsxImportSource https://esm.sh/react */
2import { renderToString } from "npm:react-dom/server";
3
4export default async function(req: Request) {

AichaBlogLayout.tsx3 matches

@AichaAb•Updated 5 days ago
1/** @jsxImportSource npm:react@18.2.0 */
2import type { ReactNode } from "npm:react@18.2.0";
3
4export function Layout({ children }: { children: ReactNode }) {
5 return (
6 <html lang="en">

reactHonoStarter4 file matches

@halfstack•Updated 18 hours ago

MiniAppStarter10 file matches

@moe•Updated 20 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