Search

1,919 code results for react client side

Code
1,919

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 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.
# 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/ind
[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/ind
[React Hono Example](https://www.val.town/x/stevekrouse/reactHonoExample) is a fuller featured e
# 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 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/ind
[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/ind
[React Hono Example](https://www.val.town/x/stevekrouse/reactHonoExample) is a fuller featured e
/** @jsxImportSource https://esm.sh/react@18.3.1 */
import React from "https://esm.sh/react@18.3.1";
import { renderToString } from "https://esm.sh/react-dom@18.3.1/server";
import { lastlogin } from "https://esm.town/v/stevekrouse/lastlogin_safe";
function App({ initialEmail, initialIdeas }: AppProps) {
// Placeholder for client-side implementation
return (
// Server-side rendering of the static shell
function Shell({ initialEmail, initialIdeas }: AppProps) {
__html: `
import React from 'https://esm.sh/react@18.3.1';
import { createRoot } from 'https://esm.sh/react-dom@18.3.1/client';
import { App } from '${import.meta.url}';
createRoot(root).render(
React.createElement(App, {
initialEmail,
// Export App component for client-side hydration
export { App };
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