Merge pull request #82 from CITguy/patch-2

[FIX] useSSR - remove redundant code
This commit is contained in:
Angelos Chalaris
2019-11-18 17:46:41 +02:00
committed by GitHub

View File

@ -38,12 +38,6 @@ const useSSR = (callback, delay) => {
return React.useMemo(() => Object.assign(Object.values(useSSRObject), useSSRObject), [inBrowser]);
};
const SSRChecker = props => {
let { isBrowser, isServer } = useSSR();
return <p>{ isBrowser ? 'Running on browser' : 'Running on server' }</p>;
};
```
```jsx