1# Server-side Render React Mini Framework
2
3This is very experimental, more of a prototype of an architecture, than a true framework
5Example: https://www.val.town/v/stevekrouse/TodoApp
6
7Migrated from folder: Archive/ssr_react_mini
10import { sqlite } from "https://esm.town/v/std/sqlite?v=4";
11import { Hono } from "npm:hono";
12import { JSX } from "npm:react";
13
14export async function emailSubscription(req: Request) {
1/** @jsxImportSource https://esm.sh/preact */
2import { sqlite } from "https://esm.town/v/std/sqlite?v=4";
3
1/** @jsxImportSource https://esm.sh/preact */
2import { email } from "https://esm.town/v/std/email?v=11";
3import { sqlite } from "https://esm.town/v/std/sqlite?v=4";
4import { render } from "npm:preact-render-to-string";
5
6type SubscriberRow = [
1/** @jsxImportSource https://esm.sh/react */
2import { generateLessonHtml } from "https://esm.town/v/petermillspaugh/lessonTemplate";
3import { renderToString } from "npm:react-dom/server";
4
5/*
1/** @jsxImportSource https://esm.sh/react */
2import React from "https://esm.sh/react";
3import { renderToString } from "https://esm.sh/react-dom@18.2.0/server";
4import { sqlite } from "https://esm.town/v/std/sqlite?v=4";
5import { html } from "https://esm.town/v/stevekrouse/html";
1/** @jsxImportSource https://esm.sh/react */
2import React from "https://esm.sh/react";
3import { renderToString } from "https://esm.sh/react-dom@18.2.0/server";
4import { sqlite } from "https://esm.town/v/std/sqlite?v=4";
5import { html } from "https://esm.town/v/stevekrouse/html";
1/** @jsxImportSource https://esm.sh/react */
2import { lessons } from "https://esm.town/v/petermillspaugh/lessons";
3import { email as sendEmail } from "https://esm.town/v/std/email?v=11";
4import { renderToString } from "npm:react-dom/server";
5
6export async function sendLessonResponses({ email, lesson, formData }) {
1/** @jsxImportSource https://esm.sh/react */
2import { generateLessonHtml } from "https://esm.town/v/petermillspaugh/lessonTemplate";
3import { renderToString } from "npm:react-dom/server";
4
5/*
1/** @jsxImportSource https://esm.sh/react */
2import { JSX } from "npm:react";
3import { renderToString } from "npm:react-dom/server";
4
5interface QuizQuestion {
Starter template with client-side React & Hono server
A web-based dice roller using React on Val Town
Write business logic with ease
Meet the new standard for modern TypeScript development.
Type-safe, reactive, framework-agnostic library to manage your business logic.
Follow me if you learn more about JavaScript | TypeScript | React.js | Next.js | Linux | NixOS | Frontend Developer | https://linktr.ee/officialrajdeepsingh