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/image-url.jpg%20%22Optional%20title%22?q=react&page=886&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 9181 results for "react"(1265ms)

preactExamplemain.tsx3 matches

@maxm•Updated 1 year ago
1/** @jsxImportSource https://esm.sh/preact */
2import { render } from "npm:preact-render-to-string";
3
4export const preactExample = () =>
5 new Response(render(<div>Test {1 + 1}</div>), {
6 headers: {

preactExampleREADME.md1 match

@maxm•Updated 1 year ago
1null
2
3Migrated from folder: examples/preactExample

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

IClickWolf4 file matches

@vtTestLocal•Updated 7 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