react.dev
react.dev copied to clipboard
Wrong client detection in example
trafficstars
This:
if (typeof window === 'undefined') {
throw Error('Chat should only render on the client.');
}
Should be this:
if (typeof document === 'undefined') {
throw Error('Chat should only render on the client.');
}
Because Deno has window object.