Skip to content
This repository has been archived by the owner on Jan 12, 2021. It is now read-only.

A demonstration of the solution when hydrating server side rendered react-media-universal.

Notifications You must be signed in to change notification settings

hyperlab/react-media-universal-demo-universal

Repository files navigation

A demonstration of how react-media-universal solves the problems with hydrating server side rendered React.

This demo shows that when we wrap our tree in the <MediaProvider> component, and use the <Media> component imported from react-media-universal, we don't get the DOM inconsistency as demonstrated in react-media-universal-demo-vanilla.

Setup and running

First install dependencies:

yarn

Then build server and client:

yarn build

And run server:

yarn start

About

A demonstration of the solution when hydrating server side rendered react-media-universal.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published