jackyef / preact-ssr-hydrate-repro

Repo to test preact SSR hydration behavior

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Preact Server Side Rendering example

This is an example of server side rendring using preact.

Steps:

  1. Start client watch : yarn start:client
  2. Start express server : yarn start:server
  3. Go to http://localhost:8080 you should see the send line of text is not red-colored.
  4. But, if we change hydrate to render in ./src/index.js it will be red-colored.

The text is only rendered on the client-side, which might be the problem. This works correctly with react though.

About

Repo to test preact SSR hydration behavior


Languages

Language:JavaScript 100.0%