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=12&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 17471 results for "react"(1631ms)

1import type { Meta, StoryObj } from "@storybook/react";
2import { LoginPage } from "./LoginPage";
3

personalShopperNavbar.stories.tsx1 match

@bgschiller•Updated 1 day ago
1import type { Meta, StoryObj } from "@storybook/react";
2import { Navbar } from "./Navbar";
3

personalShoppertypes.ts2 matches

@bgschiller•Updated 1 day ago
1import { ReactNode } from "react";
2import { UserData, Location } from "../../shared/types.ts";
3
5 title: string;
6 count: string | number;
7 icon: ReactNode;
8 actionText: string;
9 onAction: () => void;
1import type { Meta, StoryObj } from "@storybook/react";
2import { DashboardCard } from "./DashboardCard";
3

Studybeaststudybeast.tsx4 matches

@Nothingboy•Updated 1 day ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
3import React, { useEffect, useState } from "https://esm.sh/react@18.2.0";
4
5// User credentials mapping
201 const [error, setError] = useState("");
202
203 const handleSubmit = (e: React.FormEvent) => {
204 e.preventDefault();
205 if (USER_CREDENTIALS[username] === password) {

reactHonoStarterREADME.md4 matches

@anup_d911•Updated 1 day ago
1# React Hono Starter
2
3This app is a starter template for client-side React and server-side Hono.
4
5## Getting started
13- The **client-side entrypoint** is [`/frontend/index.html`](/frontend/index.html)
14 - which in turn imports [`/frontend/index.tsx`](/frontend/index.tsx)
15 - which in turn imports the React app from [`/frontend/components/App.tsx`](/frontend/components/App.tsx).
16
17So if you wanted to get a sense of how this app comes together, we suggest reading the files in this order:
21## Further resources
22
23- [React Hono Example](https://www.val.town/x/stevekrouse/reactHonoExample) is a bigger example project, with a SQLite database table, queries, client-side CSS, a favicon, and shared code that runs on both client and server.

reactHonoStarterindex.tsx2 matches

@anup_d911•Updated 1 day ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
3import { App } from "./components/App.tsx";
4

reactHonoStarterindex.html1 match

@anup_d911•Updated 1 day ago
4 <meta charset="UTF-8">
5 <meta name="viewport" content="width=device-width, initial-scale=1.0">
6 <title>React Hono Val Town Starter</title>
7 <link rel="stylesheet" href="/frontend/style.css">
8 <link rel="icon" href="/frontend/favicon.svg" type="image/svg+xml">

reactHonoStarterApp.tsx3 matches

@anup_d911•Updated 1 day ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { useState } from "https://esm.sh/react@18.2.0";
3
4export function App() {
6 return (
7 <div>
8 <h1>Val Town React + Hono Starter</h1>
9 I've been clicked <button onClick={() => setClicked((c) => c + 1)}>{clicked}</button> times
10 </div>

houseSearchSFscrapedHouses.tsx4 matches

@shapedlines•Updated 1 day ago
1// This val creates a form to input a Zillow or Craigslist link, determines the link type,
2// calls the appropriate scraping API, and renders the results in a table.
3// It uses React for the UI, fetch for API calls, and basic string manipulation for link validation.
4
5/** @jsxImportSource https://esm.sh/react */
6import React, { useState } from "https://esm.sh/react";
7import { createRoot } from "https://esm.sh/react-dom/client";
8
9function App() {

reactHonoStarter4 file matches

@anup_d911•Updated 1 day ago

MiniAppStarter11 file matches

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