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%22Optional%20title%22?q=react&page=173&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 12021 results for "react"(1338ms)

CrosswordVocabularyPage.tsx3 matches

@td1•Updated 1 week ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState } from "https://esm.sh/react@18.2.0";
3import { Category, VocabularyItem } from "../../shared/types.ts";
4
10}
11
12const VocabularyPage: React.FC<VocabularyPageProps> = ({
13 categories,
14 vocabulary,

CrosswordHomePage.tsx3 matches

@td1•Updated 1 week ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React from "https://esm.sh/react@18.2.0";
3import { Category } from "../../shared/types.ts";
4
9}
10
11const HomePage: React.FC<HomePageProps> = ({ categories, onNavigate, onSelectCategory }) => {
12 return (
13 <div className="py-8">

CrosswordHeader.tsx3 matches

@td1•Updated 1 week ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React from "https://esm.sh/react@18.2.0";
3
4interface HeaderProps {
7}
8
9const Header: React.FC<HeaderProps> = ({ onNavigate, currentPage }) => {
10 return (
11 <header className="bg-blue-600 text-white p-4 shadow-md">

markdownBlogStarterLayout.tsx3 matches

@Lyriks•Updated 1 week ago
1/** @jsxImportSource npm:react@18.2.0 */
2import type { ReactNode } from "npm:react@18.2.0";
3
4export function Layout({ children }: { children: ReactNode }) {
5 return (
6 <html lang="en">

NewApp.tsx3 matches

@technicalmickey•Updated 1 week ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState, useEffect } from "https://esm.sh/react@18.2.0";
3import { parseProject } from "https://esm.town/v/std/utils@85-main/index.ts";
4import { UserResponse } from "../../shared/types.ts";
32}
33
34const App: React.FC = () => {
35 const [user, setUser] = useState<UserResponse | null>(null);
36 const [loading, setLoading] = useState<boolean>(true);

Newindex.tsx5 matches

@technicalmickey•Updated 1 week ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React from "https://esm.sh/react@18.2.0";
3import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
4import App from "./components/App.tsx";
5
10const root = createRoot(rootElement);
11root.render(
12 <React.StrictMode>
13 <App />
14 </React.StrictMode>
15);

Newindex.html1 match

@technicalmickey•Updated 1 week ago
40 <div id="root"></div>
41
42 <!-- React and dependencies -->
43 <script type="module" src="/frontend/index.tsx"></script>
44</body>

NewREADME.md1 match

@technicalmickey•Updated 1 week ago
44## Technologies Used
45
46- **Frontend**: React, TailwindCSS
47- **Backend**: Deno, Hono (API framework)
48- **Database**: SQLite

stockAppUpdateInventoryView.tsx3 matches

@prashamtrivedi•Updated 1 week ago
1/** @jsxImportSource https://esm.sh/preact@10.19.6 */
2import {h, FunctionComponent, JSX} from "https://esm.sh/preact@10.19.6"
3import {useState, useEffect} from "https://esm.sh/preact@10.19.6/hooks"
4import {User, Product, ProductDetectionResponse} from "../../shared/types.ts"
5// import * as apiClient from "../apiClient.ts"; // Will be removed

ALogin.tsx3 matches

@aditya_2629•Updated 1 week ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState, useContext } from "https://esm.sh/react@18.2.0";
3import { AuthContext } from "./App.tsx";
4
10 const [loading, setLoading] = useState(false);
11
12 const handleSubmit = async (e: React.FormEvent) => {
13 e.preventDefault();
14

reactHonoStarter4 file matches

@ultragamer969•Updated 15 hours ago

reactHonoStarter4 file matches

@lightweight•Updated 21 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