• Blog
  • Docs
  • Pricing
  • Weโ€™re hiring!
Log inSign up
N47

N47

untitled-3927

Public
Like
untitled-3927
Home
Code
2
main.ts
toto.md
Environment variables
Branches
1
Pull requests
Remixes
History
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data โ€“ all from the browser, and deployed in milliseconds.
Sign up now
Code
/
toto.md
Code
/
toto.md
Search
2/3/2026
Viewing readonly version of main branch: v7
View latest version
toto.md

/** @jsxImportSource https://esm.sh/react@18.2.0 */ import { createRoot } from "https://esm.sh/react-dom@18.2.0/client"; import React, { useState } from "https://esm.sh/react@18.2.0";

const NO_PHRASES = [ "No ๐Ÿ’”", "ู…ูˆุจ ุนู„ู‰ ูƒูŠููƒ ", "ุงุถุบุทูŠ Yes", "ุงุถุบุทูŠ Yes ู„ูˆ ุณู…ุญุชูŠ ", "ูˆุจุนุฏูŠู† ู…ุนูƒ ", "ู…ุชู‰ ู†ุงูˆูŠุฉ ุชุถุบุทูŠู† Yes ", "ุชุนุจุชูŠู†ูŠ ู…ุนูƒ ", ];

function App() { const [noClicks, setNoClicks] = useState(0); const [isValentine, setIsValentine] = useState(false); const yesButtonSize = (noClicks * 20) + 16;

const firstImg = "https://media.tenor.com/VIChDQ6ejRQAAAAj/jumping-bear-hearts-no-png.gif"; const secondImg = "https://media.tenor.com/f1xnRxTRxLAAAAAj/bears-with-kisses-bg.gif";

const handleNo = () => { setNoClicks(prev => prev + 1); };

const handleYes = () => { setIsValentine(true); };

return ( <div style={{ display: "flex", flexDirection: "column", alignItems: "center", justifyContent: "center", height: "100vh", fontFamily: "Arial, sans-serif", textAlign: "center", }} > {!isValentine ? ( <>

toto Will you be my Valentine? ๐Ÿ’˜

Yes {noClicks === 0 ? "No" : NO_PHRASES[Math.min(noClicks - 1, NO_PHRASES.length - 1)]}
) : ( <>
ุซุงู†ูƒุณ ุญุจูŠ!!! ๐Ÿ’–๐ŸŽ‰
)} ); }

function client() { createRoot(document.getElementById("root")).render(); } if (typeof document !== "undefined") { client(); }

export default async function server(request: Request): Promise { return new Response( <html> <head> <title>Valentine's Day Invitation</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> body { margin: 0; font-family: Arial, sans-serif; } </style> </head> <body> <div id="root"></div> <script src="https://esm.town/v/std/catch"></script> <script type="module" src="${import.meta.url}"></script> </body> </html>, { headers: { "content-type": "text/html" }, }, ); }# untitled-3927

FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
Weโ€™re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
ยฉ 2026 Val Town, Inc.