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/?q=react&page=849&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 8979 results for "react"(1198ms)

june2024main.tsx1 match

@petermillspaugh•Updated 10 months ago
1/** @jsxImportSource https://esm.sh/preact */
2import { sqlite } from "https://esm.town/v/std/sqlite?v=4";
3

sendTestEmailNewslettermain.tsx2 matches

@petermillspaugh•Updated 10 months ago
1/** @jsxImportSource https://esm.sh/preact */
2import { generateNewsletterJsx } from "https://esm.town/v/petermillspaugh/generateNewsletterJsx";
3import { getJune2024Newsletter } from "https://esm.town/v/petermillspaugh/june2024";
4import { email as sendEmail } from "https://esm.town/v/std/email?v=11";
5import { render } from "npm:preact-render-to-string";
6
7export function sendTestEmailNewsletter(interval: Interval) {

generateNewsletterJsxmain.tsx2 matches

@petermillspaugh•Updated 10 months ago
1/** @jsxImportSource https://esm.sh/preact */
2import { JSX } from "npm:preact";
3
4interface NewsletterJsxParams {

linkInBioTemplatemain.tsx2 matches

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

socialMetaTestmain.tsx2 matches

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

staticChessmain.tsx2 matches

@tmcw•Updated 10 months ago
1/** @jsxImportSource https://esm.sh/react */
2import { analyticsHandlerWrapper } from "https://esm.town/v/maxm/valTownAnalytics";
3import { Chess, Move, Square } from "npm:chess.js";
4import minify from "npm:css-simple-minifier";
5import { renderToString } from "npm:react-dom/server";
6
7class StaticChess {

resumeHandlermain.tsx1 match

@ajax•Updated 10 months ago
1/** @jsxImportSource https://esm.sh/react */
2import { resumeConfig } from "https://esm.town/v/ajax/resumeConfig";
3import { helloResume } from "https://esm.town/v/iamseeley/helloResume";

mootexmain.tsx2 matches

@maxm•Updated 10 months ago
1/** @jsxImportSource https://esm.sh/react */
2import hljs from "npm:highlight.js";
3import { renderToString } from "npm:react-dom/server";
4
5// Example code snippet

linkInBioTemplatemain.tsx2 matches

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

clientMultirouteReactmain.tsx11 matches

@iamseeley•Updated 10 months ago
1/**
2 * @title Client-Side Rendered React App
3 * @description Create a personal portfolio website with client-side rendering using React and React Router.
4 */
5import { websiteStyles } from "https://esm.town/v/iamseeley/websiteStyles";
13 <meta charset="UTF-8">
14 <meta name="viewport" content="width=device-width, initial-scale=1.0">
15 <title>${personalData.name} | Client-side React via CDN</title>
16 <script src="https://cdn.jsdelivr.net/npm/react@17.0.2/umd/react.production.min.js"></script>
17 <script src="https://cdn.jsdelivr.net/npm/react-dom@17.0.2/umd/react-dom.production.min.js"></script>
18 <script src="https://cdn.jsdelivr.net/npm/react-router-dom@5.2.0/umd/react-router-dom.min.js"></script>
19 <script src="https://cdn.jsdelivr.net/npm/@babel/standalone@7.14.5/babel.min.js"></script>
20 <style>
25 <div id="root"></div>
26 <script type="text/babel">
27 const { useState, useEffect } = React;
28 const { BrowserRouter, Route, NavLink, Switch } = ReactRouterDOM;
29
30 const Navigation = () => (
40 <h2>Welcome to My Portfolio</h2>
41 <p>${personalData.summary}</p>
42 <p><strong>This website is rendered client-side with React.</strong></p>
43 <p>Check out the <a href='https://www.val.town/v/iamseeley/clientMultirouteReact'>source</a> and start building your own site!</p>
44 </div>
45 );
94 );
95
96 ReactDOM.render(<App />, document.getElementById('root'));
97 </script>
98 </body>

vt-discord4 file matches

@boucher•Updated 3 days ago
Starter template with client-side React & Hono server

diceRollerUI1 file match

@dcm31•Updated 3 days ago
A web-based dice roller using React on Val Town
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