Skip to content

React pre-rendering, but it works with window, localStorage, document, etc.

License

Notifications You must be signed in to change notification settings

jharrilim/rolledup

Repository files navigation

rolledup

What is this

This is SSR that actually works with browser stuff, eg. window.

Note: Currently this is just a proof-of-concept; actual implementation coming soon.

Demo

The index.js script reads the demo.js React file and renders it into demo.html.

To try it,

$ npm i
$ node .

CLI

Right now, this has to be pointed to a directory that contains an index.js React file. The index.js file must contain a line for rendering static markup:

ReactDOMServer.renderToStaticMarkup(<Foo />);

You can render it with:

rolledup ./path/to/src/dir

About

React pre-rendering, but it works with window, localStorage, document, etc.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published