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=798&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 9180 results for "react"(3756ms)

productiveRosePeacockmain.tsx6 matches

@stevekrouse•Updated 4 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import Cerebras from "https://esm.sh/@cerebras/cerebras_cloud_sdk";
3import Chart from "https://esm.sh/chart.js/auto";
4import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
5import { Prism as SyntaxHighlighter } from "https://esm.sh/react-syntax-highlighter";
6import { tomorrow } from "https://esm.sh/react-syntax-highlighter/dist/esm/styles/prism";
7import React, { useEffect, useState } from "https://esm.sh/react@18.2.0";
8
9const STARTER_PROMPTS = [
141 });
142
143 async function handleSubmit(e: React.FormEvent) {
144 e.preventDefault();
145 setLoading(true);

prodigiousBrownImpalamain.tsx6 matches

@stevekrouse•Updated 4 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import Cerebras from "https://esm.sh/@cerebras/cerebras_cloud_sdk";
3import Chart from "https://esm.sh/chart.js/auto";
4import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
5import { Prism as SyntaxHighlighter } from "https://esm.sh/react-syntax-highlighter";
6import { tomorrow } from "https://esm.sh/react-syntax-highlighter/dist/esm/styles/prism";
7import React, { useEffect, useState } from "https://esm.sh/react@18.2.0";
8
9const STARTER_PROMPTS = [
141 });
142
143 async function handleSubmit(e: React.FormEvent) {
144 e.preventDefault();
145 setLoading(true);

BestTime2postmain.tsx3 matches

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

captivatingPurpleTapirmain.tsx3 matches

@mohsen•Updated 4 months 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() {

SermonGPTUImain.tsx12 matches

@mjweaver01•Updated 4 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
3import ReactMarkdown from "https://esm.sh/react-markdown@9.0.1";
4import React, { ErrorInfo, StrictMode, useEffect, useRef, useState } from "https://esm.sh/react@18.2.0";
5import remarkGfm from "https://esm.sh/remark-gfm@4.0.0";
6
19
20// New ErrorBoundary component
21class ErrorBoundary extends React.Component<
22 { children: React.ReactNode },
23 { hasError: boolean; error?: Error }
24>
25{
26 constructor(props: { children: React.ReactNode }) {
27 super(props);
28 this.state = { hasError: false };
226 };
227
228 const handleSubmit = async (e: React.FormEvent) => {
229 e.preventDefault();
230 setResponse("");
330 }}
331 >
332 <ReactMarkdown
333 remarkPlugins={[remarkGfm]}
334 components={{
358 >
359 {response}
360 </ReactMarkdown>
361 </div>
362 )}
536 <h2>{selectedSermon.theme}</h2>
537 <small>{new Date(selectedSermon.createdAt).toLocaleString()}</small>
538 <ReactMarkdown
539 remarkPlugins={[remarkGfm]}
540 components={{
564 >
565 {selectedSermon.content}
566 </ReactMarkdown>
567 </div>
568 );

legendaryVioletBovidmain.tsx6 matches

@stevekrouse•Updated 4 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import Cerebras from "https://esm.sh/@cerebras/cerebras_cloud_sdk";
3import Chart from "https://esm.sh/chart.js/auto";
4import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
5import { Prism as SyntaxHighlighter } from "https://esm.sh/react-syntax-highlighter";
6import { tomorrow } from "https://esm.sh/react-syntax-highlighter/dist/esm/styles/prism";
7import React, { useEffect, useState } from "https://esm.sh/react@18.2.0";
8
9const STARTER_PROMPTS = [
141 });
142
143 async function handleSubmit(e: React.FormEvent) {
144 e.preventDefault();
145 setLoading(true);

WhyUseCreativeFabricamain.tsx3 matches

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

newThankYouEmailVersionmain.tsx2 matches

@stevekrouse•Updated 4 months ago
1/** @jsxImportSource https://esm.sh/react */
2import { micromark } from "https://esm.sh/micromark@3";
3import { email } from "https://esm.town/v/std/email?v=11";
5import { html } from "https://esm.town/v/stevekrouse/html";
6import { thisValURL } from "https://esm.town/v/stevekrouse/thisValURL";
7import { renderToString } from "npm:react-dom/server";
8import Stripe from "npm:stripe";
9

tweetArchiveViewermain.tsx4 matches

@nulo•Updated 4 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
3import { VariableSizeList as List } from "https://esm.sh/react-window?deps=react@18.2.0,react-dom@18.2.0";
4import React, { useCallback, useEffect, useRef, useState } from "https://esm.sh/react@18.2.0";
5
6const BASE_URL = "https://f004.backblazeb2.com/file/datos-argentina/irrelacionado-misc/";

valreadmegeneratormain.tsx3 matches

@prashamtrivedi•Updated 4 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { ValTown } from "https://esm.sh/@valtown/sdk";
3import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
4import React, { useRef, useState, useEffect } from "https://esm.sh/react@18.2.0";
5
6function App() {

IClickWolf4 file matches

@vtTestLocal•Updated 3 hours ago
Starter template with client-side React & Hono server

vt-discord4 file matches

@boucher•Updated 4 days ago
Starter template with client-side React & Hono server
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