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/$%7Bart_info.art.src%7D?q=react&page=143&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 9671 results for "react"(1370ms)

Twitter_Trakermain.tsx3 matches

@HajerOmerUpdated 2 weeks ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
3import React, { useEffect, useState } from "https://esm.sh/react@18.2.0";
4
5function formatDate(dateString: string) {

skillsmain.tsx3 matches

@ifeUpdated 2 weeks ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState, useEffect } from "https://esm.sh/react@18.2.0";
3import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
4
5function App() {

nursingStudentSupportHubmain.tsx12 matches

@fave_24Updated 2 weeks ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState, useEffect, useRef } from "https://esm.sh/react@18.2.0";
3import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
4
5// [Previous ASSISTANTS configuration remains unchanged]
33 content: input,
34 timestamp: new Date().toLocaleString(),
35 reactions: [],
36 replies: [],
37 parentId: replyTo ? replyTo.id : null
58 };
59
60 const addReaction = (messageId, reaction) => {
61 setMessages(prev =>
62 prev.map(msg => {
64 return {
65 ...msg,
66 reactions: [...(msg.reactions || []), reaction]
67 };
68 }
69 // Check replies for nested reactions
70 if (msg.replies) {
71 const updatedReplies = msg.replies.map(reply =>
72 reply.id === messageId
73 ? {...reply, reactions: [...(reply.reactions || []), reaction]}
74 : reply
75 );
96 <div className="message-meta">
97 <small>{msg.timestamp}</small>
98 <div className="reactions">
99 <button onClick={() => setReplyTo(msg)}>💬 Reply</button>
100 <button onClick={() => addReaction(msg.id, "❤️")}>❤️</button>
101 <button onClick={() => addReaction(msg.id, "👍")}>👍</button>
102 </div>
103 {msg.reactions && msg.reactions.map((r, idx) => <span key={idx}>{r}</span>)}
104 </div>
105 {msg.replies && msg.replies.map(reply => renderMessage(reply, true))}

markdownBlogStarterLayout.tsx3 matches

@voskUpdated 2 weeks 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">

markdownBlogStarterindex.tsx4 matches

@voskUpdated 2 weeks 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(

markdownBlogStarterLayout.tsx3 matches

@Oma01Updated 2 weeks 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">

markdownBlogStarterindex.tsx4 matches

@Oma01Updated 2 weeks 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(

Zeemain.tsx6 matches

@IbiyediUpdated 2 weeks ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState, useEffect } from "https://esm.sh/react@18.2.0";
3import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
4
5function JobPostingForm() {
8 const [description, setDescription] = useState("");
9
10 const handleSubmit = async (e: React.FormEvent) => {
11 e.preventDefault();
12 try {
88 const [error, setError] = useState("");
89
90 const handleSubmit = (e: React.FormEvent) => {
91 e.preventDefault();
92 if (username.trim().length < 2) {
149 }, []);
150
151 const handleSendMessage = async (e: React.FormEvent) => {
152 e.preventDefault();
153 if (!username) return;

moiPosterImprovedItemList.tsx3 matches

@dcm31Updated 2 weeks ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React from "https://esm.sh/react@18.2.0";
3import { Val } from "../../shared/types.ts";
4
13 * List component for displaying vals
14 */
15const ItemList: React.FC<ItemListProps> = ({
16 items,
17 onSelectItem,

faq_chatbotmain.tsx3 matches

@sunmadeUpdated 2 weeks ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState, useEffect } from "https://esm.sh/react@18.2.0";
3import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
4
5function App() {

StarterPackFeeds10 file matches

@moeUpdated 2 hours ago
Hono + React + Tailwind + Farcaster Mini App Starter Project

reactHonoStarter4 file matches

@deboneil07Updated 3 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