Skip to content
This repository has been archived by the owner on Nov 9, 2021. It is now read-only.

Latest commit

 

History

History
46 lines (30 loc) · 1.39 KB

README.md

File metadata and controls

46 lines (30 loc) · 1.39 KB

hyperapp-server

Travis CI Codecov npm Slack

Your favorite hyperapp framework, now rendered server-side.

Installation

# Using npm
npm install hyperapp-server hyperapp

# Using yarn
yarn add hyperapp-server

Usage

At the moment, hyperapp-server only supports static rendering. True server rendering coming soon!

import { h } from "hyperapp"
import { toString } from "hyperapp-server"

const vnode = h("div", null, "Hi.")

const html = toString(vnode)

// html = "<div>Hi.<div>"

Issues

No software is free of bugs. If you're not sure if something is a bug or not, file an issue anyway. Questions, feedback and feature requests are welcome too.

Community

License

HyperApp is MIT licensed. See LICENSE.