rsnext/examples/with-fela
2021-01-19 07:28:54 +00:00
..
pages Fixed missing SSR styles in with-fela example (#17647) 2020-11-11 20:12:51 +00:00
.gitignore Added .gitignore to examples that are deployed to vercel (#15127) 2020-07-16 10:52:23 -04:00
FelaProvider.js Fix FOUC issue on with-fela example (#7229) 2019-05-06 19:57:34 -05:00
getFelaRenderer.js Improve linting rules to catch more errors (#9374) 2019-11-10 19:24:53 -08:00
package.json Ensure all examples are MIT licensed (#16691) 2020-08-29 22:32:35 -04:00
README.md Include utm_source on example links to vercel.com (#21305) 2021-01-19 07:28:54 +00:00

Example app with Fela

This example features how to use a different styling solution than styled-jsx that also supports universal styles. That means we can serve the required styles for the first render within the HTML and then load the rest in the client. In this case we are using fela.

For this purpose we are extending the <Document /> and injecting the server side rendered styles into the <head>.

Deploy your own

Deploy the example using Vercel:

Deploy with Vercel

How to use

Execute create-next-app with npm or Yarn to bootstrap the example:

npx create-next-app --example with-fela with-fela-app
# or
yarn create next-app --example with-fela with-fela-app

Deploy it to the cloud with Vercel (Documentation).