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=543&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 8586 results for "react"(1622ms)

reactRouter7layout.tsx4 matches

@justbe•Updated 2 months ago
1/** @jsxImportSource npm:react */
2import { Form, Link, Outlet, useLoaderData } from "npm:react-router";
3import { type loader } from "./layout.server.ts";
4
8 <html>
9 <head>
10 <title>React Router Custom Framework</title>
11 </head>
12 <body>
13 <div>
14 <h1>React Router Custom Framework</h1>
15
16 <Form method="post">

reactRouter7layout.server.ts1 match

@justbe•Updated 2 months ago
1import { ActionFunctionArgs, type LoaderFunctionArgs } from "npm:react-router";
2
3let db = { message: "Hello world!" };

reactRouter7layout.client.ts1 match

@justbe•Updated 2 months ago
1import { type LoaderFunctionArgs } from "npm:react-router";
2
3export async function loader({ request }: LoaderFunctionArgs) {

reactRouter7index.ts1 match

@justbe•Updated 2 months ago
1import { ActionFunctionArgs, LoaderFunctionArgs } from "npm:react-router";
2import aboutLoader from "./about.loader.ts";
3import About from "./about.tsx";

reactRouter7home.tsx1 match

@justbe•Updated 2 months ago
1/** @jsxImportSource npm:react */
2
3export default function Home() {

reactRouter7entry.server.tsx3 matches

@justbe•Updated 2 months ago
1/** @jsxImportSource npm:react */
2import { renderToString } from "npm:react-dom/server";
3import { createStaticHandler, createStaticRouter, StaticRouterProvider } from "npm:react-router";
4
5import routes from "./routes/index.ts";

reactRouter7entry.client.tsx4 matches

@justbe•Updated 2 months ago
1import { createElement, StrictMode } from "npm:react";
2import { hydrateRoot } from "npm:react-dom/client";
3import { createBrowserRouter } from "npm:react-router";
4import { RouterProvider } from "npm:react-router/dom";
5import routes from "./routes/index.ts";
6

reactRouter7about.loader.ts1 match

@justbe•Updated 2 months ago
1import { data } from "npm:react-router";
2
3export default async function load() {

valentinemain.tsx3 matches

@PhantomKingdom•Updated 2 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
3import React, { useState } from "https://esm.sh/react@18.2.0";
4
5const NO_PHRASES = [

valentine_sabelomain.tsx3 matches

@devSlayer•Updated 2 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
3import React, { useEffect, useState } from "https://esm.sh/react@18.2.0";
4
5const NO_PHRASES = [

vt-discord4 file matches

@boucher•Updated 1 day 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