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=828&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 8598 results for "react"(1753ms)

valtownByExampleREADME.md1 match

@pomdtr•Updated 1 year ago
38```
39
40See @pomdtr/react_example
41
42### Adding external resources to your example

crimsonLynxmain.tsx2 matches

@stevekrouse•Updated 1 year ago
1/** @jsxImportSource https://esm.sh/react */
2import { renderToString } from "npm:react-dom/server";
3
4export const personalWebsite = (request: Request) => {

htmlmain.tsx3 matches

@neverstew•Updated 1 year ago
1/** @jsxImportSource npm:preact */
2import type { VNode } from "npm:preact";
3import { render } from "npm:preact-render-to-string";
4
5export const html = (html: VNode) =>

preactTestmain.tsx2 matches

@neverstew•Updated 1 year ago
1export const preactTest = async () => {
2 const { useState, h, htm, renderToString } = await import(
3 "https://npm.reversehttp.com/preact,htm,preact/hooks,preact-render-to-string"
4 );
5 const html = htm.bind(h);

date_me_docs_tablemain.tsx1 match

@stevekrouse•Updated 1 year ago
1/** @jsxImportSource https://esm.sh/preact */
2import { getDocs } from "https://esm.town/v/stevekrouse/getSqliteDateMeDocs";
3

purpleOctopusmain.tsx1 match

@stevekrouse•Updated 1 year ago
1/** @jsxImportSource https://esm.sh/preact */
2import { modifyFetchHandler } from "https://esm.town/v/andreterron/codeOnValTown?v=50";
3import browse from "https://esm.town/v/stevekrouse/dateme_browse";

ReloadScriptmain.tsx2 matches

@stevekrouse•Updated 1 year ago
1import { createElement } from "https://esm.sh/react";
2import { getCurrentValVersionNumber } from "https://esm.town/v/stevekrouse/getCurrentValVersionNumber?v=4";
3import { parentReference } from "https://esm.town/v/stevekrouse/parentReference";
22 </script>`;
23
24export const ReloadScriptReactElement = ({ vals } = { vals: [parentReference()] }) =>
25 createElement("script", {
26 type: "module",

pinkPigmain.tsx4 matches

@stevekrouse•Updated 1 year ago
1// render WebcamPage as a client side react component with fetch handler response object
2
3const script = `
4import WebcamPage from 'https://esm.sh/gh/fal-ai/fal-js@9cc7cf5456/apps/demo-nextjs-app-router/app/camera-turbo/page.tsx';
5import React from 'https://esm.sh/react@17.0.2?dev';
6import { render } from 'https://esm.sh/react-dom@17.0.2?dev';
7
8render(React.createElement(WebcamPage), document.getElementById('root'));
9`;
10

dot_commain.tsx5 matches

@horatiothomas•Updated 1 year ago
1/** @jsxImportSource https://esm.sh/react */
2import { email } from "https://esm.town/v/std/email?v=11";
3import { sqlite } from "https://esm.town/v/std/sqlite?v=5";
4import { ReloadScriptReactElement } from "https://esm.town/v/stevekrouse/ReloadScript";
5import tailwindURL from "https://esm.town/v/stevekrouse/tailwindURL";
6import { renderToString } from "npm:react-dom/server";
7
8const linkClass = "text-blue-500 hover:underline";
9const Link = (
10 { children, href }: {
11 children?: React.ReactNode;
12 href: string;
13 },
44 <script src={tailwindURL} />
45 {url.searchParams.get("dev")
46 ? <ReloadScriptReactElement vals={[{ valName: "dot_com", userHandle: "stevekrouse" }]} />
47 : null}
48 </head>

pagemain.tsx2 matches

@rwev•Updated 1 year ago
1/** @jsxImportSource https://esm.sh/react */
2import { Hono } from "npm:hono@3";
3
4import { getAllPageEntriesDb, getLatestPageEntryDb } from "https://esm.town/v/rwev/pageEntriesDb";
5import { renderToString } from "npm:react-dom/server";
6
7const app = new Hono();

vt-discord4 file matches

@boucher•Updated 2 days ago
Starter template with client-side React & Hono server

diceRollerUI1 file match

@dcm31•Updated 2 days ago
A web-based dice roller using React on Val Town
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