Skip to content
#

compose

Here are 263 public repositories matching this topic...

gpoole
gpoole commented Oct 21, 2020

Describe the bug
useFullscreen directly accesses document so can't be used with server-side rendering. Errors produced are e.g.

ReferenceError: document is not defined

To Reproduce
Use SSR with a component that calls useFullscreen:

const { renderToString } = require('react-dom/server');
const useFullscreen = require('@rooks/use-fullscreen');

renderToSt

Improve this page

Add a description, image, and links to the compose topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the compose topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.