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/$%7Bsuccess?q=react&page=875&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 9064 results for "react"(2567ms)

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();

personalWebsitemain.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) => {

http_clientmain.tsx2 matches

@pomdtr•Updated 1 year ago
1/** @jsxImportSource npm:preact **/
2
3import { html } from "https://esm.town/v/stevekrouse/html?v=5";
4import { Base64 } from "npm:js-base64";
5import { render } from "npm:preact-render-to-string";
6
7type SerializedRequest = {

http_clientmain.tsx2 matches

@stevekrouse•Updated 1 year ago
1/** @jsxImportSource npm:preact **/
2
3import { html } from "https://esm.town/v/stevekrouse/html?v=5";
4import { Base64 } from "npm:js-base64";
5import { render } from "npm:preact-render-to-string";
6
7type SerializedRequest = {

reactExamplemain.tsx4 matches

@dm•Updated 1 year ago
1/** @jsxImportSource https://esm.sh/react */
2import { renderToString } from "npm:react-dom/server";
3
4function HelloWorld() {
26}
27
28function reactExample(request: Request) {
29 const renderedString = renderToString(<Html content={<HelloWorld />} />);
30
38}
39
40export default reactExample;

vt-discord4 file matches

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

diceRollerUI1 file match

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