Question: I have a single page web application using React and materialize-css and I would like to export it as static HTML and CSS so that it is possible to easily edit HTML for the purpose of prototyping. Is it possible to export at least a snapshot of current state?

I tried "save page" in Firefox and Chrome, but it does not provide good results.

Answer: 
The [ReactDOMServer](https://facebook.github.io/react/docs/react-dom-server.html) module contains a function for rendering a React application to static HTML - it's designed for use on the server, but I don't think there's anything to stop you using it in the browser (don't do this in production though!)

```
import ReactDOMServer from "react-dom/server";
import App from "./yourComponent";

document.body.innerHTML = ReactDOMServer.renderToStaticMarkup(App);

```
You can build your code and host it on [github.io](https://pages.github.com). The [following tutorial](https://github.com/gitname/react-gh-pages) will help you achieve that. You can then use the generated code in the gh-pages branch as your exported HTML