Permalink
Browse files

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

  • Loading branch information...
MoOx committed Oct 16, 2017
1 parent 561d595 commit 2ad218202c2b43349ed4762ca79bac001a61b76e
Showing with 3 additions and 4 deletions.
  1. +3 −4 examples/react-app-styles-with-glamorous/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 2ad2182

Please sign in to comment.