Permalink
Browse files

examples/react-app-styles-with-glamor: critical css only :)

  • Loading branch information...
MoOx committed Oct 16, 2017
1 parent 7c8f613 commit 561d59581a9fd3728ba65bbf505c1192fc3e4082
Showing with 3 additions and 4 deletions.
  1. +3 −4 examples/react-app-styles-with-glamor/Html.js
@@ -1,10 +1,9 @@
import * as React from "react";
import { renderStatic } from "glamor/server";
import { renderStaticOptimized } from "glamor/server";
export default ({ App, render }: PhenomicHtmlPropsType) => {
const { html: { Main, State, Script }, css, ids } = renderStatic(() =>
render(<App />)
);
const { html, Main, State, Script } = render(<App />);
const { css, ids } = renderStaticOptimized(() => html);
return (
<html>

0 comments on commit 561d595

Please sign in to comment.