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%22Image%20title%22?q=react&page=18&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 21591 results for "react"(1230ms)

TownieuseScrollToBottom.tsx1 match

@pcstyle•Updated 5 days ago
1import { useEffect, useRef } from 'https://esm.sh/react@18.2.0';
2
3

TownieuseProject.tsx1 match

@pcstyle•Updated 5 days ago
1import { useState, useEffect } from "react";
2
3const PROJECT_ENDPOINT = "/api/project";

TownieuseProjects.tsx1 match

@pcstyle•Updated 5 days ago
1import { useState, useEffect } from "react";
2
3const ENDPOINT = "/api/projects-loader";

TownieuseLoadingFavicon.ts1 match

@pcstyle•Updated 5 days ago
1import { useEffect } from "react";
2
3function setLoadingFavicon() {

TownieuseCreditBalance.tsx2 matches

@pcstyle•Updated 5 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { useState, useEffect } from "react";
3
4export function useCreditBalance() {

TownieuseCreateProject.tsx1 match

@pcstyle•Updated 5 days ago
1import { useState, useEffect } from "react";
2
3const ENDPOINT = "/api/create-project";

TownieuseCreateBranch.tsx1 match

@pcstyle•Updated 5 days ago
1import { useState, useEffect } from "react";
2
3const ENDPOINT = "/api/create-branch";

TownieuseChatLogic.ts5 matches

@pcstyle•Updated 5 days ago
1import { useChat } from "@ai-sdk/react";
2import React, { useCallback, useMemo, useRef, useState } from "react";
3import { playBellSound } from "../utils/soundEffects.ts";
4
105 }, [stop, pendingMessageId, soundEnabled]);
106
107 React.useEffect(() => {
108 customStopRef.current = handleStop;
109 }, [handleStop]);
110
111 React.useEffect(() => {
112 (window as any).customStopRef = customStopRef;
113 }, []);
114
115 React.useEffect(() => {
116 if (error && LIMIT_RE.test(error)) {
117 setOverLimit(true);

TownieuseBranches.tsx1 match

@pcstyle•Updated 5 days ago
1import { useState, useEffect } from "react";
2
3const ENDPOINT = "/api/project-branches";

TownieTODOs.md1 match

@pcstyle•Updated 5 days 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

glimpse2-runbook-view-glimpse-save-login-react20 file matches

@lightweight•Updated 1 hour ago

wa-hono-react4 file matches

@nbbaier•Updated 1 day ago
react
franky47
Freelance software engineer, open-sourcerer, speaker. Building `nuqs`, a type-safe search params state manager for React.