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=1073&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 11767 results for "react"(2529ms)

ampleIndigoJunglefowlmain.tsx3 matches

@faseeu•Updated 6 months ago
1/** @jsxImportSource https://esm.sh/react */
2import React, { useEffect, useRef, useState } from "https://esm.sh/react";
3import { createRoot } from "https://esm.sh/react-dom/client";
4import anime from "https://esm.sh/animejs@3.2.1";
5

toughPinkPigmain.tsx2 matches

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

cerebras_codermain.tsx6 matches

@omerco•Updated 6 months ago
1/** @jsxImportSource https://esm.sh/react */
2import Cerebras from "https://esm.sh/@cerebras/cerebras_cloud_sdk";
3import React, { useState } from "https://esm.sh/react";
4import { createRoot } from "https://esm.sh/react-dom/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";
7
8function App() {
18 >(null);
19
20 async function handleSubmit(e: React.FormEvent) {
21 e.preventDefault();
22 setLoading(true);

statusmain.tsx3 matches

@omerco•Updated 6 months ago
1/** @jsxImportSource https://esm.sh/react */
2import { sqlite } from "https://esm.town/v/std/sqlite?v=6";
3import { html } from "https://esm.town/v/stevekrouse/html";
4import { SparklineSVG } from "https://esm.town/v/stevekrouse/sparklineSVGReact";
5import { renderToString } from "npm:react-dom/server";
6
7function StatusRow({ rows }) {

Techstoremain.tsx6 matches

@aneesimran•Updated 6 months ago
1/** @jsxImportSource https://esm.sh/react */
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// Sample product data
20];
21
22class ErrorBoundary extends React.Component {
23 constructor(props) {
24 super(props);
294 if (root) {
295 createRoot(root).render(
296 <React.StrictMode>
297 <ErrorBoundary>
298 <App />
299 </ErrorBoundary>
300 </React.StrictMode>
301 );
302 } else {

sanguineCyanMastodonmain.tsx3 matches

@mikehiggins•Updated 6 months ago
1/** @jsxImportSource https://esm.sh/react */
2import React, { useState } from "https://esm.sh/react";
3import { createRoot } from "https://esm.sh/react-dom/client";
4
5function calculateTFIDF(text, outputSize = 7) {

imageGenmain.tsx6 matches

@muhammad_owais_warsi•Updated 6 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import debounce from "https://esm.sh/lodash.debounce@4.0.8";
3import ReactDOM from "https://esm.sh/react-dom@18.2.0";
4import React, { useCallback, useEffect, useState } from "https://esm.sh/react@18.2.0";
5
6function App() {
119 const root = document.getElementById("root");
120 if (root) {
121 ReactDOM.createRoot(root).render(
122 <React.StrictMode>
123 <App />
124 </React.StrictMode>,
125 );
126 }

TaylorSwiftMomentsmain.tsx4 matches

@vawogbemi•Updated 6 months ago
1/** @jsxImportSource https://esm.sh/react */
2import { createFalClient } from "https://esm.sh/@fal-ai/client";
3import React, { useEffect, useState } from "https://esm.sh/react";
4import { createRoot } from "https://esm.sh/react-dom/client";
5
6const swiftEras = [
215 };
216
217 const generateImage = async (e?: React.FormEvent) => {
218 e?.preventDefault();
219 setLoading(true);

sendNotificationREADME.md1 match

@wizos•Updated 6 months ago
3This val can be used in other vals to send notifications to a segment using [OneSignal's REST API](https://documentation.onesignal.com/reference/create-notification)
4
5This is really handy if you want to send push notifications to your phone without building a native app! I built a barebones React PWA that asks for a password then loads the OneSignal Web SDK that I deployed to [Netlify](https://www.netlify.com/) for free. OneSignal has [easy to follow docs](https://documentation.onesignal.com/docs/web-sdk-setup) so you can build this functionality into a React, Angular, Vue app or even Wordpress! Then [install the PWA](https://www.bitcot.com/how-to-install-a-pwa-to-your-device/) on your platform of choice and you're off to the races!
6
7## Setup

affableMagentaPlanarianmain.tsx3 matches

@willthereader•Updated 6 months ago
1/** @jsxImportSource https://esm.sh/react */
2import * as cheerio from "https://esm.sh/cheerio";
3import React, { useEffect, useState } from "https://esm.sh/react";
4import { createRoot } from "https://esm.sh/react-dom/client";
5
6console.log("Version: " + import.meta.url.match(/[?&]v=([^&]*)/)?.at(1));

MiniAppStarter9 file matches

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

reactHonoStarter4 file matches

@jessicagarson•Updated 15 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