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=90&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 9926 results for "react"(1932ms)

markdownBlogStarterindex.tsx4 matches

@Abdikeni•Updated 1 week ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import Markdown from "https://esm.sh/react-markdown@9?deps=react@18.2.0";
3import { listFiles, readFile } from "https://esm.town/v/std/utils@85-main/index.ts";
4import { renderToString } from "npm:react-dom@18.2.0/server";
5import { Layout } from "./Layout.tsx";
6
44}
45
46function html(children: React.ReactNode) {
47 return new Response(
48 renderToString(

TownieuseScrollToBottom.tsx1 match

@valdottown•Updated 1 week ago
1import { useEffect, useRef } from 'https://esm.sh/react@18.2.0?dev';
2
3

TownieTODOs.md1 match

@valdottown•Updated 1 week ago
1- [ ] Give it a tool to make an HTTP request to its own endpoint to test things!
2- [x] Get React Router working on the client & move off localstorage for storing page state
3- [ ] When it hits the max number of steps, detect that and give the user a button (or instructions on how) to get it to continue (neverstew mentioned this)
4- [x] Make it look good

TownieRequireAuthRoute.tsx2 matches

@valdottown•Updated 1 week ago
1/** @jsxImportSource https://esm.sh/react@18.2.0?dev */
2import {
3 Outlet,
4 Navigate,
5 useLocation,
6} from "https://esm.sh/react-router@7?dev&deps=react@18.2.0&react-dom@18.2.0";
7import { useAuth } from "../hooks/useAuth.tsx";
8

TownieNotFoundRoute.tsx1 match

@valdottown•Updated 1 week ago
1/** @jsxImportSource https://esm.sh/react@18.2.0?dev */
2
3export function NotFoundRoute () {

TownieLoading.tsx1 match

@valdottown•Updated 1 week ago
1/** @jsxImportSource https://esm.sh/react@18.2.0?dev */
2
3export function Loading () {

TownieuseUsageStats.ts1 match

@std•Updated 1 week ago
1import { useEffect } from "https://esm.sh/react@18.2.0?dev";
2
3export function useUsageStats (messages: any[], usages: any[]) {

TownieuseScrollToBottom.tsx1 match

@std•Updated 1 week ago
1import { useEffect, useRef } from 'https://esm.sh/react@18.2.0?dev';
2
3

TownieuseProject.tsx1 match

@std•Updated 1 week ago
1import { useState, useEffect } from "https://esm.sh/react@18.2.0?dev";
2import { useAuth } from "./useAuth.tsx";
3

TownieuseProjects.tsx1 match

@std•Updated 1 week ago
1import { useState, useEffect } from "https://esm.sh/react@18.2.0?dev";
2import { useAuth } from "./useAuth.tsx";
3
react-router-hono-starter

react-router-hono-starter4 file matches

@jxnblk•Updated 5 hours ago
Minimal React Router + Hono starter example
react-router-data-mode-starter

react-router-data-mode-starter4 file matches

@jxnblk•Updated 6 hours ago
Minimal React Router starter using data mode
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