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=705&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 17012 results for "react"(5203ms)

reactHonoStarterAuthScreen.tsx3 matches

@Arthur88•Updated 1 month ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { useState } from "https://esm.sh/react@18.2.0";
3import { useAuth } from "./AuthContext.tsx";
4import { triggerHapticFeedback } from "../../shared/utils.ts";
19 };
20
21 const handleSubmit = async (e: React.FormEvent) => {
22 e.preventDefault();
23 setFormError('');

reactHonoStarterApp.tsx3 matches

@Arthur88•Updated 1 month ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { useState, useRef, useEffect } from "https://esm.sh/react@18.2.0";
3import { useAuth } from "./AuthContext.tsx";
4import { useTheme } from "./ThemeContext.tsx";
102
103 // Handle scroll events for haptic feedback
104 const handleScroll = (e: React.UIEvent<HTMLDivElement>) => {
105 // Trigger haptic feedback on scroll
106 if (user?.settings?.haptic_feedback) {

reactHonoStarterThemeContext.tsx3 matches

@Arthur88•Updated 1 month ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { createContext, useState, useEffect, useContext, ReactNode } from "https://esm.sh/react@18.2.0";
3
4type Theme = 'light' | 'dark' | 'system';
16});
17
18export function ThemeProvider({ children }: { children: ReactNode }) {
19 const [theme, setTheme] = useState<Theme>(() => {
20 const savedTheme = localStorage.getItem('theme');

reactHonoStarterAuthContext.tsx3 matches

@Arthur88•Updated 1 month ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { createContext, useState, useEffect, useContext, ReactNode } from "https://esm.sh/react@18.2.0";
3import { User, UserSettings } from "../../shared/types.ts";
4
25});
26
27export function AuthProvider({ children }: { children: ReactNode }) {
28 const [user, setUser] = useState<User | null>(null);
29 const [settings, setSettings] = useState<UserSettings | null>(null);

reactHonoStarterindex.tsx2 matches

@Arthur88•Updated 1 month ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
3import { App } from "./components/App.tsx";
4import { AuthProvider } from "./components/AuthContext.tsx";

TownieuseUser.tsx1 match

@TheyClonedMe•Updated 1 month ago
1import { useState, useEffect } from "react";
2
3const USER_ENDPOINT = "/api/user";

TownieuseUsageStats.ts1 match

@TheyClonedMe•Updated 1 month ago
1import { useEffect } from "react";
2
3export function useUsageStats(messages: any[], usages: any[]) {

TownieuseScrollToBottom.tsx1 match

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

TownieuseProject.tsx1 match

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

TownieuseProjects.tsx1 match

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

tanstackReactHonoExample10 file matches

@laurynas•Updated 4 hours ago

tanstackReactHonoExample10 file matches

@charmaine•Updated 11 hours ago
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