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/?q=react&page=601&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 9670 results for "react"(1042ms)

neatTealCobramain.tsx1 match

@alephnotation•Updated 2 months ago
1import React, { useEffect, useState } from "npm:react";
2
3const RLVersComparison = () => {

authenticBeigeFireflymain.tsx3 matches

@all•Updated 2 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
3import React, { useState } from "https://esm.sh/react@18.2.0";
4
5const cropData = [

loveyoumain.tsx5 matches

@Tinygusie2•Updated 2 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { motion } from "https://esm.sh/framer-motion@11.0.3?deps=react@18.2.0,react-dom@18.2.0";
3import ReactDOM from "https://esm.sh/react-dom@18.2.0";
4import React from "https://esm.sh/react@18.2.0";
5
6function App() {
97
98function client() {
99 ReactDOM.createRoot(document.getElementById("root")!).render(<App />);
100}
101if (typeof document !== "undefined") { client(); }

dataAnalyticsPortfoliomain.tsx5 matches

@Sumeshbamaniya•Updated 2 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState, useEffect, useRef, ErrorInfo } from "https://esm.sh/react@18.2.0";
3import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
4import * as THREE from "https://esm.sh/three@0.158.0";
5
6// Error Boundary Component for catching rendering errors
7class ErrorBoundary extends React.Component<{children: React.ReactNode}, { hasError: boolean, error?: Error }> {
8 constructor(props: {children: React.ReactNode}) {
9 super(props);
10 this.state = { hasError: false };

replicate_starterApp.tsx7 matches

@replicate•Updated 2 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
3import React from "https://esm.sh/react@18.2.0";
4
5function ImageGenerator() {
6 const [prompt, setPrompt] = React.useState("");
7 const [images, setImages] = React.useState<any>([]);
8 const [loading, setLoading] = React.useState(false);
9
10 const samplePrompts = [
31 };
32
33 React.useEffect(() => {
34 // Set a random prompt when component mounts
35 setPrompt(getRandomPrompt());

valentinemain.tsx3 matches

@krithik•Updated 2 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
3import React, { useState } from "https://esm.sh/react@18.2.0";
4
5const NO_PHRASES = [

Forevermain.tsx3 matches

@djay•Updated 2 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
3import React, { useState } from "https://esm.sh/react@18.2.0";
4
5const NO_PHRASES = [

MySolesamain.tsx3 matches

@dwadonjay•Updated 2 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
3import React, { useState } from "https://esm.sh/react@18.2.0";
4
5const NO_PHRASES = [

hustlerbydefaultmain.tsx2 matches

@Melliema•Updated 2 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 **/
2import { renderToString } from "https://esm.sh/react-dom@18.2.0/server";
3
4export default (req: Request) => {

loveyoumain.tsx5 matches

@mewtru•Updated 2 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { motion } from "https://esm.sh/framer-motion@11.0.3?deps=react@18.2.0,react-dom@18.2.0";
3import ReactDOM from "https://esm.sh/react-dom@18.2.0";
4import React from "https://esm.sh/react@18.2.0";
5
6function App() {
129
130function client() {
131 ReactDOM.createRoot(document.getElementById("root")!).render(<App />);
132}
133if (typeof document !== "undefined") { client(); }

StarterPackFeeds10 file matches

@moe•Updated 16 mins ago
Hono + React + Tailwind + Farcaster Mini App Starter Project

reactHonoStarter4 file matches

@deboneil07•Updated 58 mins 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