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/$%7Burl%7D?q=react&page=147&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 16362 results for "react"(2268ms)

markdownBlogStarterLayout.tsx3 matches

@Kishaskyโ€ขUpdated 6 days 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

@Kishaskyโ€ขUpdated 6 days 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(

untitled-4618README.md2 matches

@Mo5โ€ขUpdated 6 days ago
29โ”œโ”€โ”€ frontend/
30โ”‚ โ”œโ”€โ”€ index.html # Main HTML template
31โ”‚ โ”œโ”€โ”€ index.tsx # React app entry point
32โ”‚ โ”œโ”€โ”€ components/
33โ”‚ โ”‚ โ”œโ”€โ”€ App.tsx # Main app component
49
50- **Backend**: Hono (TypeScript API framework)
51- **Frontend**: React 18.2.0 with TypeScript
52- **Database**: SQLite for chat message persistence
53- **Styling**: TailwindCSS

linkInBioTemplatemain.tsx2 matches

@keyboardworriorโ€ขUpdated 6 days ago
1/** @jsxImportSource https://esm.sh/react */
2import { renderToString } from "npm:react-dom/server";
3
4export default async function(req: Request) {

julietmain.tsx2 matches

@juliahโ€ขUpdated 6 days ago
1/** @jsxImportSource https://esm.sh/react */
2import { renderToString } from "npm:react-dom/server";
3
4export default async function(req: Request) {

Exceltrainer1main.tsx5 matches

@nduruโ€ขUpdated 6 days ago
1import * as React from "npm:react@18.2.0/esm/react.production.min.js";
2
3type Lesson = {
38
39export default function App() {
40 const [lessonIndex, setLessonIndex] = React.useState(0);
41 const [userInput, setUserInput] = React.useState("");
42 const [feedback, setFeedback] = React.useState("");
43 const [showHint, setShowHint] = React.useState(false);
44
45 const lesson = lessons[lessonIndex];

linkInBioTemplatemain.tsx2 matches

@vimbaiโ€ขUpdated 6 days ago
1/** @jsxImportSource https://esm.sh/react */
2import { renderToString } from "npm:react-dom/server";
3
4export default async function(req: Request) {

linkInBioTemplatemain.tsx2 matches

@juliahโ€ขUpdated 6 days ago
1/** @jsxImportSource https://esm.sh/react */
2import { renderToString } from "npm:react-dom/server";
3
4export default async function(req: Request) {

untitled-9181main.tsx1 match

@Danlaโ€ขUpdated 6 days ago
11Victorious: 100% โ€” excited, celebrating
12
13It should react to a variable called tasksCompleted out of totalTasks, and update its state based on the progress.
14
15It should speak short motivational messages like:

GP1main.tsx2 matches

@Godspowerโ€ขUpdated 6 days ago
1/** @jsxImportSource https://esm.sh/react */
2import { renderToString } from "npm:react-dom/server";
3
4export default async function(req: Request) {

reactHonoStarter4 file matches

@halfstackโ€ขUpdated 1 day ago

MiniAppStarter10 file matches

@moeโ€ขUpdated 1 day ago
Hono + React + Tailwind + Farcaster Mini App Starter Project
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