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/$%7Bart_info.art.src%7D?q=react&page=898&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 9281 results for "react"(3736ms)

hydrate_islandsmain.tsx2 matches

@pomdtr•Updated 1 year ago
1const islands = Array.from(document.querySelectorAll("[data-hydration-src]"));
2if (islands.length > 0) {
3 const { hydrateRoot } = await import("https://esm.sh/react-dom@18.2.0/client");
4 const { jsx: _jsx } = await import("https://esm.sh/react@18.2.0/jsx-runtime");
5 for (const island of islands) {
6 let src = island.getAttribute("data-hydration-src");

islandmain.tsx3 matches

@pomdtr•Updated 1 year ago
1/** @jsxImportSource https://esm.sh/react */
2
3import React from "https://esm.sh/react";
4
5export function Island({
12 children: any;
13}) {
14 const child = React.Children.only(children);
15
16 return (

hydrate_islandmain.tsx2 matches

@pomdtr•Updated 1 year ago
4}
5
6const { hydrateRoot } = await import("https://esm.sh/react-dom@18.2.0/client");
7const { jsx: _jsx } = await import("https://esm.sh/react@18.2.0/jsx-runtime");
8const src = island.getAttribute("data-hydration-src");
9console.log(`hydrating ${src}`);

testWebsitemain.tsx2 matches

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

testWebsitemain.tsx2 matches

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

react_web_componentmain.tsx2 matches

@pomdtr•Updated 1 year ago
1/** @jsxImportSource https://esm.sh/react **/
2import r2wc from "https://esm.sh/@r2wc/react-to-web-component";
3
4const Greeting = () => {

reactExamplemain.tsx3 matches

@Negash•Updated 1 year ago
1/** @jsxImportSource https://esm.sh/react */
2import { modifyFetchHandler } from "https://esm.town/v/andreterron/codeOnValTown?v=46";
3import { sqlite } from "https://esm.town/v/std/sqlite?v=4";
4import tailwindURL from "https://esm.town/v/stevekrouse/tailwindURL";
5import { renderToString } from "npm:react-dom/server";
6
7export const reactExample = modifyFetchHandler(async (request: Request) => {
8 const url = new URL(request.url);
9 if (url.pathname === "/favicon.ico") return new Response(null, { status: 404 });

lit_example_componentmain.tsx1 match

@pomdtr•Updated 1 year ago
14 constructor() {
15 super();
16 // Declare reactive properties
17 this.name = "World";
18 }

copperBarnaclemain.tsx2 matches

@luwes•Updated 1 year ago
1/** @jsxImportSource https://esm.sh/preact */
2import { render } from "npm:preact-render-to-string";
3
4export default async function(req: Request) {

countermain.tsx2 matches

@pomdtr•Updated 1 year ago
1/** @jsxImportSource https://esm.sh/react */
2
3import React, { useState } from "https://esm.sh/react";
4
5type Props = {

IClickWolf4 file matches

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