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=127&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 15770 results for "react"(1896ms)

EcomApp.tsx2 matches

@Ruona26•Updated 1 day ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState, useEffect } from "https://esm.sh/react@18.2.0?deps=react@18.2.0";
3import type { Product, CartItem, User } from "../../shared/types.ts";
4import Header from "./Header.tsx";

Ecomindex.tsx3 matches

@Ruona26•Updated 1 day ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React from "https://esm.sh/react@18.2.0?deps=react@18.2.0";
3import { createRoot } from "https://esm.sh/react-dom@18.2.0/client?deps=react@18.2.0,react-dom@18.2.0";
4import App from "./components/App.tsx";
5

AttApp.tsx2 matches

@mental•Updated 1 day ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState, useEffect } from "https://esm.sh/react@18.2.0?deps=react@18.2.0";
3import StudentList from "./StudentList.tsx";
4import AttendanceForm from "./AttendanceForm.tsx";

RemnachatGroupChat.tsx3 matches

@Remna•Updated 1 day ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState, useEffect, useRef } from 'https://esm.sh/react@18.2.0';
3import type { Chat, User, Message } from '../../shared/types.ts';
4
69 };
70
71 const sendMessage = async (e: React.FormEvent) => {
72 e.preventDefault();
73

Attindex.tsx4 matches

@mental•Updated 1 day ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React from "https://esm.sh/react@18.2.0?deps=react@18.2.0";
3import { createRoot } from "https://esm.sh/react-dom@18.2.0/client?deps=react@18.2.0,react-dom@18.2.0";
4import App from "./components/App.tsx";
5
6// Initialize the React app
7const root = createRoot(document.getElementById("root")!);
8root.render(<App />);

Attindex.html1 match

@mental•Updated 1 day ago
52 </div>
53
54 <!-- React and app scripts -->
55 <script type="module" src="/frontend/index.tsx"></script>
56</body>

RemnachatChatWindow.tsx3 matches

@Remna•Updated 1 day ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState, useEffect, useRef } from 'https://esm.sh/react@18.2.0';
3import type { Chat, User, Message } from '../../shared/types.ts';
4
50 };
51
52 const sendMessage = async (e: React.FormEvent) => {
53 e.preventDefault();
54

JobpostingChatRoom.tsx3 matches

@Adel0248•Updated 1 day ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState, useEffect, useRef } from "https://esm.sh/react@18.2.0?deps=react@18.2.0";
3import type { ChatMessage, CreateMessageRequest } from "../../shared/types.ts";
4
78 }, []);
79
80 const handleSendMessage = async (e: React.FormEvent) => {
81 e.preventDefault();
82

RemnachatChatList.tsx2 matches

@Remna•Updated 1 day ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React from 'https://esm.sh/react@18.2.0';
3import type { Chat, Contact } from '../../shared/types.ts';
4

JobpostingJobForm.tsx4 matches

@Adel0248•Updated 1 day ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState } from "https://esm.sh/react@18.2.0?deps=react@18.2.0";
3import type { CreateJobRequest } from "../../shared/types.ts";
4
21 const [error, setError] = useState<string | null>(null);
22
23 const handleSubmit = async (e: React.FormEvent) => {
24 e.preventDefault();
25 setLoading(true);
64 };
65
66 const handleChange = (e: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>) => {
67 const { name, value, type } = e.target;
68 setFormData(prev => ({

MiniAppStarter9 file matches

@moe•Updated 4 hours ago
Hono + React + Tailwind + Farcaster Mini App Starter Project

reactHonoStarter4 file matches

@mumokioko•Updated 12 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