Skip to content

3.2.0

Compare
Choose a tag to compare
@matthewp matthewp released this 04 Jan 19:01
· 61 commits to master since this release

This is a minor release that allows a function to be provided as the first
argument of ssr, instead of a steal configuration. Doing this you do not use
steal, but rather the function executes.

const ssr = require("done-ssr");

const render = ssr(() => {
	let el = document.createElement("div");
	document.body.appendChild(el);
});

require("http").createServer(render);