This is an example of server side rendring using preact.
- Start client watch :
yarn start:client
- Start express server :
yarn start:server
- Go to
http://localhost:8080
you should see the send line of text is not red-colored. - But, if we change
hydrate
torender
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.