Search

1,917 code results for react client side

Code
1,917

# React Hono Starter
This app is a starter template for client-side React and server-side Hono.
The **client-side entrypoint** is `/frontend/index.html`, which in turn imports `/frontend/index
[React Hono Example](https://www.val.town/x/stevekrouse/reactHonoExample) is a fuller featured e
# React Hono Starter
This app is a starter template for client-side React and server-side Hono.
The **client-side entrypoint** is `/frontend/index.html`, which in turn imports `/frontend/index
[React Hono Example](https://www.val.town/x/stevekrouse/reactHonoExample) is a fuller featured e
# React Hono Starter
This app is a starter template for client-side React and server-side Hono.
The **client-side entrypoint** is `/frontend/index.html`, which in turn imports `/frontend/index
[React Hono Example](https://www.val.town/x/stevekrouse/reactHonoExample) is a fuller featured e
Versions 0-17 of this val were done with Hono and server-rendering.
Versions 18+ were generated with Townie and use client-side React.
render the app, including HTML, JavaScript (including all client-side React), CSS, and even the
s or deployment platforms automatically make any content inside a `public/` folder public.
t that data on the frontend. This is a common pattern for client-side rendered apps.
end/database/queries.ts`. These routes are called from the React app to refresh and update data.
This template is a classic client-side-only React app.
This HTML file has a `<div id="root"></div>`, which is where we mount the React app.
ntrypoint** for all frontend JavaScript, including all the React. It is not a problem that it im
the **entrypoint** for frontend JavaScript. It imports the React app from `/frontend/components/
This directory is where the React components are stored. They're pretty standard client-side Rea
render the app, including HTML, JavaScript (including all client-side React), CSS, and even the
s or deployment platforms automatically make any content inside a `public/` folder public.
t that data on the frontend. This is a common pattern for client-side rendered apps.
end/database/queries.ts`. These routes are called from the React app to refresh and update data.
# React Hono Val Town Project Starter Template
TTP server, which serves the HTML, CSS, and JS, which run client-side.
template with other technologies choices (ie no Hono or no React), please create a new template
render the app, including HTML, JavaScript (including all client-side React), CSS, and even the
s or deployment platforms automatically make any content inside a `public/` folder public.
t that data on the frontend. This is a common pattern for client-side rendered apps.
end/database/queries.ts`. These routes are called from the React app to refresh and update data.
This template is a classic client-side-only React app.
This HTML file has a `<div id="root"></div>`, which is where we mount the React app.
ntrypoint** for all frontend JavaScript, including all the React. It is not a problem that it im
the **entrypoint** for frontend JavaScript. It imports the React app from `/frontend/components/
This directory is where the React components are stored. They're pretty standard client-side Rea
# React Hono Val Town Project Starter Template
TTP server, which serves the HTML, CSS, and JS, which run client-side.
template with other technologies choices (ie no Hono or no React), please create a new template
# React Hono Starter
This app is a starter template for client-side React and server-side Hono.
The **client-side entrypoint** is `/frontend/index.html`, which in turn imports `/frontend/index
[React Hono Example](https://www.val.town/x/stevekrouse/reactHonoExample) is a fuller featured e
/** @jsxImportSource https://esm.sh/react@18.2.0 */
import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
import React, { useEffect, useState } from "https://esm.sh/react@18.2.0";
// Rest of the client-side code remains the same...
render the app, including HTML, JavaScript (including all client-side React), CSS, and even the
s or deployment platforms automatically make any content inside a `public/` folder public.
t that data on the frontend. This is a common pattern for client-side rendered apps.
end/database/queries.ts`. These routes are called from the React app to refresh and update data.
/** @jsxImportSource https://esm.sh/react@18.2.0 */
import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
import React, { useEffect, useRef, useState } from "https://esm.sh/react@18.2.0";
// [Client-side code remains unchanged]