@isotope/prototope-server
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

Prototope Server-Side Rendering

npm (scoped) npm npm bundle size (scoped) Discord

This package contain code for Prototope's SSR renderer implementation (@isotope/prototope-server). For more details about its usage, check out the docs.

Installation

npm install @isotope/prototope-server

Usage

import { bgColor, h, m, w } from "@isotope/prototope";
import { PrototopeServer } from "@isotope/prototope-server";
import { createStringView } from "@isotope/server";

const view = createStringView("body");
const { node, getCSS } = view.$(PrototopeServer());

node.div([bgColor("primary"), h(8), m(2), w(8)]);

const css = getCSS(); //
const str = `${view}`; // <body><div><div class=""></div></div></body>

Package Sidebar

Install

npm i @isotope/prototope-server

Weekly Downloads

2

Version

0.1.3

License

MIT

Unpacked Size

157 kB

Total Files

18

Last publish

Collaborators

  • areknawo(u)