3.2.0
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);