Razzle JSXStyle Example
How to use
Download the example or clone the whole project:
curl https://codeload.github.com/jaredpalmer/razzle/tar.gz/master | tar -xz --strip=2 razzle-master/examples/with-jsxstylecd with-jsxstyle
Install it and run:
yarn installyarn start
Idea behind the example
This is demo shows how to use JSXXtyle and the new server rendering API
with Razzle. On each request, JSXStyle will extract out styles into a variable called styles
will all the critical CSS in the render
tree that we can then just drop into our <head>
; // .. server ;