1/** @jsxImportSource https://esm.sh/preact */
2import { sqlite } from "https://esm.town/v/std/sqlite?v=4";
3
sendTestEmailNewslettermain.tsx2 matches
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";
67export function sendTestEmailNewsletter(interval: Interval) {
generateNewsletterJsxmain.tsx2 matches
1/** @jsxImportSource https://esm.sh/preact */
2import { JSX } from "npm:preact";
34interface NewsletterJsxParams {
linkInBioTemplatemain.tsx2 matches
1/** @jsxImportSource https://esm.sh/react */
2import { renderToString } from "npm:react-dom/server";
34export default async function(req: Request) {
socialMetaTestmain.tsx2 matches
1/** @jsxImportSource https://esm.sh/react */
2import { renderToString } from "npm:react-dom/server";
34export default async function(req: Request) {
staticChessmain.tsx2 matches
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";
67class StaticChess {
resumeHandlermain.tsx1 match
1/** @jsxImportSource https://esm.sh/react */
2import { resumeConfig } from "https://esm.town/v/ajax/resumeConfig";
3import { helloResume } from "https://esm.town/v/iamseeley/helloResume";
1/** @jsxImportSource https://esm.sh/react */
2import hljs from "npm:highlight.js";
3import { renderToString } from "npm:react-dom/server";
45// Example code snippet
linkInBioTemplatemain.tsx2 matches
1/** @jsxImportSource https://esm.sh/react */
2import { renderToString } from "npm:react-dom/server";
34export default async function(req: Request) {
clientMultirouteReactmain.tsx11 matches
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">
27const { useState, useEffect } = React;
28const { BrowserRouter, Route, NavLink, Switch } = ReactRouterDOM;
2930const 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);
9596ReactDOM.render(<App />, document.getElementById('root'));
97</script>
98</body>