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=969&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 10367 results for "react"(2940ms)

valcontributionchartmain.tsx4 matches

@ejfox•Updated 8 months ago
1// This approach will fetch data from the specified endpoint, process it to create a GitHub-style contribution chart,
2// and render it using React. We'll use the fetch API to get the data, process it to create a heatmap-like structure,
3// and then use CSS Grid to render the chart with varying shades of green based on the number of vals created each day.
4
5/** @jsxImportSource https://esm.sh/react */
6import React, { useState, useEffect } from "https://esm.sh/react";
7import { createRoot } from "https://esm.sh/react-dom/client";
8
9function App() {

knowledgeExplorermain.tsx3 matches

@sharanbabu•Updated 8 months ago
4 * and enables exploration of related topics or deeper dives using arrow keys or buttons.
5 */
6/** @jsxImportSource https://esm.sh/react@18.2.0 */
7import React, { useState, useEffect, useCallback } from "https://esm.sh/react@18.2.0";
8import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
9
10const SUGGESTIONS = ["Quantum Computing", "Renaissance Art", "Climate Change", "Artificial Intelligence", "Space Exploration"];

textSummarizationComparisonToolmain.tsx3 matches

@sharanbabu•Updated 8 months ago
8 */
9
10/** @jsxImportSource https://esm.sh/react */
11import React, { useEffect, useState } from "https://esm.sh/react";
12import { createRoot } from "https://esm.sh/react-dom/client";
13
14function App() {

typingTestSpectrogrammain.tsx3 matches

@ejfox•Updated 8 months ago
3// TailwindCSS is used for styling.
4
5/** @jsxImportSource https://esm.sh/react */
6import React, { useState, useEffect, useRef } from "https://esm.sh/react";
7import { createRoot } from "https://esm.sh/react-dom/client";
8
9function App() {

exponentialBackoffMiddlewaremain.tsx2 matches

@stevekrouse•Updated 8 months ago
1/** @jsxImportSource npm:preact */
2import { render } from "npm:preact-render-to-string";
3
4/**

valleBlogV0main.tsx3 matches

@trantion•Updated 8 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 App() {

linkInBioTemplatemain.tsx2 matches

@trantion•Updated 8 months ago
1/** @jsxImportSource https://esm.sh/react */
2import { renderToString } from "npm:react-dom/server";
3
4export default async function(req: Request) {

legitimateTanTigermain.tsx4 matches

@sharanbabu•Updated 8 months ago
1/**
2 * This code creates a search engine prototype with autocomplete functionality using the Cerebras LLM API.
3 * It uses React for the frontend and the Cerebras API for generating autocomplete suggestions.
4 * The suggestions are cached in the browser to reduce API calls.
5 * It implements a two-step LLM process: first to get initial suggestions, then to filter them for sensibility and ethics.
7 */
8
9/** @jsxImportSource https://esm.sh/react */
10import debounce from "https://esm.sh/lodash.debounce";
11import React, { useEffect, useRef, useState } from "https://esm.sh/react";
12import { createRoot } from "https://esm.sh/react-dom/client";
13
14function App() {

geocodemain.tsx4 matches

@stevekrouse•Updated 8 months ago
1/**
2 * This code creates a geocoder widget similar to the Google Maps API search widget.
3 * It uses React for the frontend, the Cerebras API for LLM-based geocoding,
4 * and Leaflet for displaying the map.
5 */
6
7/** @jsxImportSource https://esm.sh/react */
8import React, { useState, useEffect, useRef } from "https://esm.sh/react";
9import { createRoot } from "https://esm.sh/react-dom/client";
10import debounce from "https://esm.sh/lodash.debounce";
11

resizeImageErrormain.tsx4 matches

@shawnbasquiat•Updated 8 months ago
2// It provides a form for users to input the image URL and size, and displays the resized image.
3
4/** @jsxImportSource https://esm.sh/react */
5import React, { useState } from "https://esm.sh/react";
6import { createRoot } from "https://esm.sh/react-dom/client";
7
8function App() {
11 const [resizedImageUrl, setResizedImageUrl] = useState("");
12
13 const handleSubmit = async (e: React.FormEvent) => {
14 e.preventDefault();
15 const response = await fetch(`?link=${encodeURIComponent(imageUrl)}&size=${size}`);

StarterPackFeeds11 file matches

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

reactHonoStarter4 file matches

@Janane_CM•Updated 14 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