laserCutterSimulatormain.tsx3 matches
1/** @jsxImportSource https://esm.sh/react */
2import React, { useState, useEffect, useRef } from "https://esm.sh/react";
3import { createRoot } from "https://esm.sh/react-dom/client";
45const BED_SIZE = 450;
v2FanFicScrapermain.tsx4 matches
1/** @jsxImportSource https://esm.sh/react */
2import React, { useState } from "https://esm.sh/react";
3import { createRoot } from "https://esm.sh/react-dom/client";
4// last stable version is 47
5function App() {
105106function client() {
107console.log("Initializing client-side React application");
108createRoot(document.getElementById("root")).render(<App />);
109}
count_visitsmain.tsx5 matches
1/** @jsxImportSource https://esm.sh/react */
2import React, { useEffect, useState } from "https://esm.sh/react";
3import { createRoot } from "https://esm.sh/react-dom/client";
45function App() {
52{embedCode && (
53<div className="result">
54<h2>Embed Code (Copy and paste this into your React component):</h2>
55<textarea readOnly value={embedCode} />
56<p>Current Visitor Count: {visitorCount}</p>
90const encodedUrl = encodeURIComponent(websiteUrl);
91const embedCode = `
92import { useState, useEffect } from 'react';
9394function VisitorCounter() {
1/** @jsxImportSource https://esm.sh/preact */
2import { encode } from "https://deno.land/std@0.107.0/encoding/base64.ts";
3import { render } from "npm:preact-render-to-string";
4import Replicate from "npm:replicate";
5
whoIsHiringmain.tsx4 matches
1/** @jsxImportSource https://esm.sh/react */
23import React, { useCallback, useEffect, useReducer, useRef, useState } from "https://esm.sh/react";
4import { hydrateRoot } from "https://esm.sh/react-dom/client";
5import { renderToString } from "https://esm.sh/react-dom/server";
6import { hnSearch } from "https://esm.town/v/stevekrouse/hnSearch";
7import About from "https://esm.town/v/vawogbemi/whoIsHiringAbout";
whoIsHiringREADME.md1 match
4HonoJs doesn't support render for async components so the style is off for the home page.
56And the state changes don't register in html rendering so thinking of using react instead.
78Migrated from folder: Archive/whoIsHiring
forbetHeadermain.tsx1 match
1/** @jsxImportSource https://esm.sh/react */
23const ForbetHeader = () => {
bikeInventorymain.tsx3 matches
1/** @jsxImportSource https://esm.sh/react */
2import React, { useState, useEffect } from "https://esm.sh/react";
3import { createRoot } from "https://esm.sh/react-dom/client";
4import { init, tx, id } from "https://esm.sh/@instantdb/core@0.12.12";
5
design32x32bitmapmain.tsx10 matches
1/** @jsxImportSource https://esm.sh/react */
2import React, { useCallback, useEffect, useRef, useState } from "https://esm.sh/react";
3import { createRoot } from "https://esm.sh/react-dom/client";
4import { adjectives, animals, colors, Config, uniqueNamesGenerator } from "https://esm.sh/unique-names-generator";
5231}, [settings.defaultName]);
232233const getPixelIndex = useCallback((event: React.MouseEvent | React.TouchEvent) => {
234const canvas = event.currentTarget as HTMLDivElement;
235const rect = canvas.getBoundingClientRect();
260}, [size, brushSize]);
261262const handleStart = useCallback((event: React.MouseEvent | React.TouchEvent) => {
263event.preventDefault();
264const { index, x, y } = getPixelIndex(event);
271}, [getPixelIndex, pixels, size]);
272273const handleMove = useCallback((event: React.MouseEvent | React.TouchEvent) => {
274event.preventDefault();
275if (isDrawing && startPositionRef.current) {
286}, [isDrawing, getPixelIndex, setPixel, isPainting]);
287288const handleEnd = useCallback((event: React.MouseEvent | React.TouchEvent) => {
289if (isDrawing && startPositionRef.current) {
290const { index } = getPixelIndex(event);
386"--border-color": colorScheme.border,
387"--shadow-color": colorScheme.shadow,
388} as React.CSSProperties}
389>
390<div className="retro-border">
435const root = createRoot(document.getElementById("root"));
436root.render(
437<React.StrictMode>
438<App />
439</React.StrictMode>,
440);
441} catch (error) {
calculateTransitTimeValmain.tsx3 matches
4// Results are saved and displayed for each new address added, with options to delete individual results.
56/** @jsxImportSource https://esm.sh/react */
7import React, { useEffect, useState } from "https://esm.sh/react";
8import { createRoot } from "https://esm.sh/react-dom/client";
910function App() {