1/** @jsxImportSource https://esm.sh/preact */
2import { render } from "npm:preact-render-to-string";
3
4export const remark = ({ title, content }) => async (req: Request) =>
1import React from "npm:react";
2import { renderToString } from "npm:react-dom/server";
3
4export default async function(req: Request) {
1# React MapLibre GL JS example
2Thanks: @yuiseki
1/** @jsxImportSource https://esm.sh/react */
2import * as React from "npm:react";
3/** @jsxImportSource https://esm.sh/react */
4import { renderToString } from "npm:react-dom/server";
5
6import { Map } from "https://esm.sh/react-map-gl@7.1.7/maplibre";
7
8const MyMap: React.FC = () => {
9 return (
10 <Map
1/** @jsxImportSource https://esm.sh/preact */
2import { getDocs } from "https://esm.town/v/stevekrouse/getSqliteDateMeDocs";
3
1/** @jsxImportSource https://esm.sh/preact */
2
3let linkClass = "text-sky-600 hover:text-sky-500";
134import { makeBasicContext } from "npm:@engraft/basic-setup@0.0.7";
135import { EngraftPromise, RefuncMemory, runTool, ToolProgram } from "npm:@engraft/hostkit@0.0.7";
136import { renderToString } from "npm:react-dom/server";
137
138export default async function() {
1/** @jsxImportSource https://esm.sh/preact */
2import { fetch } from "https://esm.town/v/std/fetch";
3import { render } from "npm:preact-render-to-string";
4
5const getFeedUrl = (request: Request) => {
1/** @jsxImportSource https://esm.sh/solid-jsx */
2import StlViewer from "npm:react-stl-viewer";
3import { renderToString } from "npm:solid-js/web";
4
1/** @jsxImportSource https://esm.sh/preact */
2import { render } from "npm:preact-render-to-string";
3
4export default async function(req: Request) {
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