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/?q=react&page=524&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 9182 results for "react"(915ms)

Earnmain.tsx3 matches

@shamim07•Updated 1 month 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
5function App() {

supplyChainWebAppmain.tsx3 matches

@mur•Updated 1 month ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState } from "https://esm.sh/react@18.2.0";
3import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
4
5const STEPS_TRADITIONAL = [

townieBearindex.ts1 match

@charmaine•Updated 1 month ago
4 * Uses OpenAI's API to generate code responses in the proper format.
5 */
6/** @jsxImportSource https://esm.sh/react@18.2.0 */
7import { Hono } from "npm:hono";
8import { cors } from "npm:hono/cors";

townieBearApp.tsx4 matches

@charmaine•Updated 1 month ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState, useRef, useEffect } from "https://esm.sh/react@18.2.0";
3import { v4 as uuidv4 } from "https://esm.sh/uuid@9.0.0";
4
14 const [message, setMessage] = useState("");
15
16 const handleSubmit = (e: React.FormEvent) => {
17 e.preventDefault();
18 if (message.trim() && !disabled) {
218 };
219
220 const handleSubmit = (e: React.FormEvent) => {
221 e.preventDefault();
222 handleCreateProject(projectName);

townieBearindex.tsx2 matches

@charmaine•Updated 1 month 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";
4import { createProject } from './services/projectService';

project_to_textindex.tsx2 matches

@dcm31•Updated 1 month 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

project_to_textApp.tsx6 matches

@dcm31•Updated 1 month ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React from "https://esm.sh/react@18.2.0";
3import Toast from "https://esm.sh/toastify-js";
4
5export function App() {
6 const [name, setName] = React.useState("project_to_text");
7 const [username, setUsername] = React.useState("stevekrouse");
8 const [text, setText] = React.useState<undefined | string>();
9 const [copyButtonText, setCopyButtonText] = React.useState("Copy");
10
11 const onExportClick = async () => {

createFileTreeREADME.md2 matches

@dcm31•Updated 1 month ago
7```ts
8import createFileTree from "https://esm.town/v/nbbaier/createFileTree";
9const treeOutput = await createFileTree("https://esm.town/v/std/reactHonoStarter@34-main");
10console.log(treeOutput);
11```
12
13## Example Output
14The following is the output for @stevekrouse's [reactHonoStarter](https://www.val.town/x/std/reactHonoStarter) project
15```
16.

statusstatus2 matches

@vico•Updated 1 month ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { parseProject } from "https://esm.town/v/std/parseImportMeta/project";
3import { sqlite } from "https://esm.town/v/std/sqlite?v=6";
4import { html } from "https://esm.town/v/stevekrouse/html";
5import { renderToString } from "npm:react-dom@18.2.0/server";
6import config from "./config.json" with { type: "json" };
7import { SparklineSVG } from "./sparklineSVG";

statussparklineSVG1 match

@vico•Updated 1 month ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2export function SparklineSVG({ strokeWidth = 2, data = [], fill = "none", stroke = "black" }) {
3 const padding = 2;

IClickWolf4 file matches

@vtTestLocal•Updated 9 hours ago
Starter template with client-side React & Hono server

vt-discord4 file matches

@boucher•Updated 5 days ago
Starter template with client-side React & Hono server
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