Dream.get(
"home",
_ => {
let html = ReactDOM.renderToString(<App/>);

Str.global_replace(
Str.regexp("<div id=\"root\"></div>"),
"<div id=\"root\">" ++ html ++ "</div>",
indexFileString,
)
|> appendUniversalStyles)
|> Dream.html;
}
)
An application rendering ReasonReact natively. Much faster, much safer, much cooler!