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/$1?q=react&page=1173&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 16325 results for "react"(5744ms)

nurturingCoralVolemain.tsx2 matches

@cberube•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) => {

homerepairmain.tsx3 matches

@Learn•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, { useCallback, useMemo, useReducer } from "https://esm.sh/react@18.2.0";
4
5// Centralized Type Definitions

email_capture_system_2ProjectForm.tsx4 matches

@prashamtrivedi•Updated 2 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState } from "https://esm.sh/react@18.2.0";
3import { isValidEmail } from "../../backend/utils.ts";
4
24 const [submitError, setSubmitError] = useState('');
25
26 const handleChange = (e: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => {
27 const { name, value } = e.target;
28 setFormData(prev => ({ ...prev, [name]: value }));
59 };
60
61 const handleSubmit = async (e: React.FormEvent) => {
62 e.preventDefault();
63
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState } from "https://esm.sh/react@18.2.0";
3import { Project, EmailSubscriber } from "../../shared/types.ts";
4

email_capture_system_2ProjectsList.tsx2 matches

@prashamtrivedi•Updated 2 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState } from "https://esm.sh/react@18.2.0";
3import { Project, ProjectStatus, EmailSubscriber } from "../../shared/types.ts";
4import { LoadingSpinner } from "./LoadingSpinner.tsx";

email_capture_system_2Dashboard.tsx2 matches

@prashamtrivedi•Updated 2 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState } from "https://esm.sh/react@18.2.0";
3import { ProjectsList } from "./ProjectsList.tsx";
4import { SubscribersList } from "./SubscribersList.tsx";
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React from "https://esm.sh/react@18.2.0";
3
4export function LoadingSpinner() {

email_capture_system_2Navbar.tsx2 matches

@prashamtrivedi•Updated 2 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React from "https://esm.sh/react@18.2.0";
3
4interface NavbarProps {

email_capture_system_2App.tsx2 matches

@prashamtrivedi•Updated 2 months ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState, useEffect } from "https://esm.sh/react@18.2.0";
3import { Dashboard } from "./Dashboard.tsx";
4import { Navbar } from "./Navbar.tsx";

email_capture_system_2index.html6 matches

@prashamtrivedi•Updated 2 months ago
7 <script src="https://cdn.twind.style" crossorigin></script>
8 <script src="https://esm.town/v/std/catch"></script>
9 <!-- React and dependencies -->
10 <script type="module">
11 import React from "https://esm.sh/react@18.2.0";
12 import ReactDOM from "https://esm.sh/react-dom@18.2.0/client";
13 import { App } from "./components/App.tsx";
14
16 window.twind = window.twind.setup({});
17
18 // Mount React application
19 const root = ReactDOM.createRoot(document.getElementById("app"));
20 root.render(React.createElement(App));
21 </script>
22</head>

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