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=445&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 4663 results for "react"(411ms)

iframeGridInfinitemain.tsx3 matches

@maxm•Updated 7 months ago
4 */
5
6/** @jsxImportSource https://esm.sh/react */
7import React, { useState, useEffect, useRef } from "https://esm.sh/react";
8import { createRoot } from "https://esm.sh/react-dom/client";
9
10function Modal({ onClose }) {

whoIsHiringmain.tsx4 matches

@stevekrouse•Updated 7 months ago
1/** @jsxImportSource https://esm.sh/react */
2
3import React, { useCallback, useEffect, useReducer, useRef, useState } from "https://esm.sh/react";
4import { hydrateRoot } from "https://esm.sh/react-dom/client";
5import { renderToString } from "https://esm.sh/react-dom/server";
6import { hnSearch } from "https://esm.town/v/stevekrouse/hnSearch";
7import About from "https://esm.town/v/vawogbemi/whoIsHiringAbout";

whoIsHiringREADME.md1 match

@stevekrouse•Updated 7 months ago
4HonoJs doesn't support render for async components so the style is off for the home page.
5
6And the state changes don't register in html rendering so thinking of using react instead.
7
8Migrated from folder: Archive/whoIsHiring

scientificCyanHarriermain.tsx3 matches

@stevekrouse•Updated 7 months 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";
4import { vtTokenSessionAuth } from "https://esm.town/v/stevekrouse/vtTokenSessionAuthSafe";
5

sqliteAdminDashboardmain.tsx4 matches

@stevekrouse•Updated 7 months ago
1// This val creates a SQLite dashboard admin panel with a sidebar for table names
2// It uses React for the frontend and the Val Town SQLite API for database operations
3// Now includes functionality to edit rows, using rowid or all columns as identifiers
4// and the ability to add new rows to tables
5// Column types are displayed next to column names in the UI
6
7/** @jsxImportSource https://esm.sh/react */
8import React, { useEffect, useState } from "https://esm.sh/react";
9import { createRoot } from "https://esm.sh/react-dom/client";
10import { vtTokenSessionAuth } from "https://esm.town/v/stevekrouse/vtTokenSessionAuthSafe";
11

grievingYellowAspmain.tsx5 matches

@stevekrouse•Updated 7 months ago
1/** @jsxImportSource https://esm.sh/react */
2import pLimit from "https://esm.sh/p-limit";
3import React, { useCallback, useState } from "https://esm.sh/react";
4import { hydrateRoot } from "https://esm.sh/react-dom/client";
5import { renderToReadableStream } from "https://esm.sh/react-dom/server";
6import { extractValInfo } from "https://esm.town/v/pomdtr/extractValInfo";
7
53};
54
55// React components
56const TestForm = ({ onSubmit, isLoading }) => {
57 const [url, setUrl] = useState("");

honEmeraldSnailmain.tsx4 matches

@stevekrouse•Updated 7 months ago
1/** @jsxImportSource https://esm.sh/react */
2import React, { useState, useEffect, useRef } from "https://esm.sh/react";
3import { createRoot } from "https://esm.sh/react-dom/client";
4
5const MODEL = "claude-3-sonnet-20240229";
91 }, [htmlOutput]);
92
93 const sendMessage = async (e?: React.FormEvent) => {
94 e?.preventDefault();
95 if (input.trim() === "") return;

caniuse_notifiermain.tsx2 matches

@stevekrouse•Updated 7 months ago
1/** @jsxImportSource npm:react **/
2import { blob } from "https://esm.town/v/std/blob";
3import { email } from "https://esm.town/v/std/email";
4import { renderToString } from "npm:react-dom@18/server";
5
6const updatedKey = "caniuse-updated-at";

infoboxCrawlermain.tsx3 matches

@stevekrouse•Updated 8 months ago
1/** @jsxImportSource https://esm.sh/react */
2import cheerio from "https://esm.sh/cheerio@1.0.0-rc.12";
3import dagre from "https://esm.sh/cytoscape-dagre@2.5.0";
4import cytoscape from "https://esm.sh/cytoscape@3.23.0";
5import React, { useEffect, useRef, useState } from "https://esm.sh/react";
6import { createRoot } from "https://esm.sh/react-dom/client";
7
8cytoscape.use(dagre);

exponentialBackoffMiddlewaremain.tsx2 matches

@stevekrouse•Updated 8 months ago
1/** @jsxImportSource npm:preact */
2import { render } from "npm:preact-render-to-string";
3
4/**

react-router-starter-remix-13 file matches

@jxnblk•Updated 2 days ago

reactHonoStarter4 file matches

@stfnsr•Updated 3 days ago